Searchable is a trait for Laravel 4.2+ and Laravel 5.0 that adds a simple search function to Eloquent Models. Searchable allows you to perform searches in a table giving priorities to each field for the table and its relations. This is not optimized for big searches, but sometimes you just need to make it simple (Although it is not slow). By default, multi-word search terms are split and Searchable searches for each word individually. Relevance plays a role in prioritizing matches that match on multiple words. If you want to prioritize matches that include the multi-word search (thus, without splitting into words) you can enable full-text search by setting the third value to true.

Features

  • Add the trait to your model and your search rules
  • Documentation available
  • Easy as laravel default queries
  • Search method is compatible with any eloquent method
  • Custom Threshold
  • Entire Text search

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

MIT License

Follow Laravel Searchable

Laravel Searchable Web Site

Other Useful Business Software
Enterprise-grade ITSM, for every business Icon
Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity.

Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Try it Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Laravel Searchable!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Frameworks

Registered

2024-04-09