页面 · Laravilt
Searching
Configure the global search box and which columns it searches.
The global search box is enabled by default. It searches every column marked searchable().
php
Table options
php
Search other database columns
Pass an array to search several database columns for one table column:
php
Individual column search
php
API reference
| Method | Description |
|---|---|
Table::searchable() | Show or hide the global search box |
Table::searchPlaceholder() | Placeholder text |
Column::searchable($condition, $isIndividual, $isGlobal) | Mark a column searchable; $condition may be an array of database columns |