Lara-Crud

Package for quick deployment admin panel on Laravel

Search setting class. The call works only in the showDisplay() method


$this->searchConfig() :object

Example List

The search will be conducted strictly by the first characters: LIKE "SEARCH_STRING%"

Example: $this->searchConfig()->lastSearch();

The search will be conducted on the last characters: LIKE "%SEARCH_STRING"

Example: $this->searchConfig()->firstSearch();

Search will be performed by exact match: LIKE "SEARCH_STRING"

Example: $this->searchConfig()->exactSearch();

Accepts an array of fields by which the search will be performed. By default, the search is performed on all that are displayed.

Example: $this->searchConfig()->fieldSearch(['firstname', 'lastname']);