sources api

This commit is contained in:
merdan 2022-09-29 18:15:57 +05:00
parent 868602b580
commit 2cd62243fa
1 changed files with 12 additions and 12 deletions

View File

@ -53,18 +53,18 @@ class ProductFlat extends Model implements ProductFlatContract
{
return 'products_index';
}
public function toSearchableArray():array
{
return [
'id' => $this->id,
'sku' => $this->sku,
'name' => $this->name,
// 'meta_title' => $this->meta_title,
'meta_keywords' => $this->meta_keywords,
'status' => $this->status,
'visible_individually' => $this->visible_individually
];
}
// public function toSearchableArray():array
// {
// return [
// 'id' => $this->id,
// 'sku' => $this->sku,
// 'name' => $this->name,
//// 'meta_title' => $this->meta_title,
// 'meta_keywords' => $this->meta_keywords,
// 'status' => $this->status,
// 'visible_individually' => $this->visible_individually
// ];
// }
/**
* Get an attribute from the model.
*