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

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

MIT License

Follow Spatie Laravel Searchable

Spatie Laravel Searchable Web Site

Other Useful Business Software
Try Google Cloud Risk-Free With $300 in Credit Icon
Try Google Cloud Risk-Free With $300 in Credit

No hidden charges. No surprise bills. Cancel anytime.

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.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Spatie Laravel Searchable!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Frameworks

Registered

2024-04-15