Download the PHP package vluzrmos/eloquent-simple-searchable without Composer
On this page you can find all versions of the php package vluzrmos/eloquent-simple-searchable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package eloquent-simple-searchable
Eloquent Simple Searchable
Installation
composer require vluzrmos/eloquent-simple-searchable
Usage
Put that trait into your model:
The attribute $searchable should contain the index with a column or a related column and the value is a type of the search which includes:
left_text
: Match the left side of the column valueright_text
: Match the right side of the column valueequals
: The searchd text should be equals to the column valuefull_text
: The searched text should be in any position of the searchd column.
Real Life Usage
And in your controller or anywhere:
Note: The
search
method is a scope, so you need to use query builder methods likeget
orall
to perform the search and get a collection of the results.
All versions of eloquent-simple-searchable with dependencies
PHP Build Version
Package Version
Requires
illuminate/database Version
>=5.0 <9
The package vluzrmos/eloquent-simple-searchable contains the following files
Loading the files please wait ....