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.

'searchables' => [
'products' => [
'label' => 'Products', // Title of tab
'fields' => ['name', 'description'], // Fields to search in
'index' => ['id', 'name'], // Fields to index on search results
'route' => 'admin.products.edit' // Route name to edit or view model
],
],