SearchableModelTrait
trait SearchableModelTrait
Class SearchableModelTrait can be applied to an eloquent model to give it "searchablity". You have to override the getColumns method and/or make a protected $searchable = array('column1' => 1, 'column2' => 2);
where numbers 1 and 2 are the respective relevance of those columns
Methods
mixed
scopeSearch($query, $search)
Makes the search process work for a model
Details
at line 30
mixed
scopeSearch($query, $search)
Makes the search process work for a model