<?php

namespace App\Models;

use Laravel\Scout\Searchable;
use Illuminate\Database\Eloquent\Model;

class Product extends Model
{
    //關鍵字搜尋
    use Searchable;

    //要搜尋的欄位
    public function toSearchableArray()
    {
        return [
            'brand_category' => $this->brand_category,
            'series_category' => $this->series_category,
            'product_categories' => $this->product_categories,
            'system_category' => $this->system_category,
            'product_id' => $this->product_id,
            'product_name' => $this->product_name,
            'diameter' => $this->diameter,
            'length' => $this->length,
            'high' => $this->high,
            'cuff' => $this->cuff,
            'angle' => $this->angle,
            'type' => $this->type,
            'post_h' => $this->post_h,
        ];
    }

    
}
