diff --git a/packages/Webkul/Product/src/Models/ProductFlat.php b/packages/Webkul/Product/src/Models/ProductFlat.php index 10de5871d..70b993a20 100644 --- a/packages/Webkul/Product/src/Models/ProductFlat.php +++ b/packages/Webkul/Product/src/Models/ProductFlat.php @@ -56,7 +56,16 @@ 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, + ]; + } /** * Get an attribute from the model. *