Search
trait Search
Properties
| string | $yat_global_search | ||
| string|null | $yat_global_search_label | ||
| bool | $useGlobalSearch |
Methods
void
useGlobalSearch(bool $status = true)
Enable or disable global search.
void
setSearchLabel(string $label)
Set the label for the global search input.
void
updatingSearch()
Handle updates to the global search input.
Collection
filteredData()
Filter the data based on global search (Array mode).
Builder
applySearchToQuery(Builder $query)
Apply global search to the Eloquent query.
Details
at line 18
void
useGlobalSearch(bool $status = true)
Enable or disable global search.
at line 28
void
setSearchLabel(string $label)
Set the label for the global search input.
at line 40
void
updatingSearch()
Handle updates to the global search input.
Resets pagination when search query changes.
at line 50
Collection
filteredData()
Filter the data based on global search (Array mode).
at line 91
Builder
applySearchToQuery(Builder $query)
Apply global search to the Eloquent query.