This package makes it easy to get structured searches from a variety of sources. Here's an example where we search through some models. We already did some small preparation on the models themselves. The search will be performed case insensitive. $searchResults now contains all User models that contain john in the name attribute and BlogPosts that contain 'john' in the title attribute.
Features
- You can now loop over the search results
- Documentation available
- Examples available
- Search through models
- You'll only need to add a getSearchResult method to each searchable model
- Create custom search aspects
- Render search results
Categories
FrameworksLicense
MIT LicenseFollow Spatie Laravel Searchable
Other Useful Business Software
Try Google Cloud Risk-Free With $300 in Credit
Use your credit across every product. Compute, storage, AI, analytics. When it runs out, 20+ products stay free. You only pay when you choose to.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Spatie Laravel Searchable!