search suggestions start

This commit is contained in:
merdan 2022-04-17 14:32:04 +05:00
parent c61a9d8388
commit d3f9181004
1 changed files with 9 additions and 0 deletions

View File

@ -36,6 +36,15 @@ class Brand extends Model implements BrandContract
{
return 'brands_index';
}
public function toSearchableArray()
{
return [
'id' => $this->id,
'name' => $this->name,
'type' => 'brand'
];
}
/**
* Get image url for the category image.
*/