<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ShopAttribute extends Model
{
protected $fillable = [
'shop_id',
'woo_attribute_id',
'name',
'slug',
'type',
'order_by',
'has_archives',
'raw_data',
];
protected $casts = [
'has_archives' => 'boolean',
'raw_data' => 'array',
];
public function shop()
{
return $this->belongsTo(Shop::class);
}
}