24 lines
521 B
PHP
24 lines
521 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use EloquentFilter\Filterable;
|
|
|
|
class Product extends Model
|
|
{
|
|
use HasFactory;
|
|
use Filterable;
|
|
|
|
protected function serializeDate(\DateTimeInterface $date)
|
|
{
|
|
return $date->format('Y-m-d H:i:s');
|
|
}
|
|
|
|
protected $fillable = [
|
|
'name', 'sub_title', 'cover', 'photos', 'base_info', 'description',
|
|
'spu', 'sku', 'parent_id', 'category_id', 't_ids',
|
|
];
|
|
}
|