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 29
void
useGlobalSearch(bool $status = true)
Enable or disable global search.
at line 40
void
setSearchLabel(string $label)
Set the label for the global search input.
at line 52
void
updatingSearch()
Handle updates to the global search input.
Resets pagination when search query changes.
at line 62
Collection
filteredData()
Filter the data based on global search (Array mode).
at line 100
Builder
applySearchToQuery(Builder $query)
Apply global search to the Eloquent query.