Searching Models
By default the search bar in admin will search for users, pages and articles. You can add more models in the searchables array in config/hotcoffee.php.
1
'searchables' => [
2
'products' => [
3
'label' => 'Products', // Title of tab
4
'fields' => ['name', 'description'], // Fields to search in
5
'index' => ['id', 'name'], // Fields to index on search results
6
'route' => 'admin.products.edit' // Route name to edit or view model
7
],
8
],
Copied!
Last modified 1yr ago
Copy link