liyinglin 2 years ago
parent b8a5526352
commit e533f00ae4

@ -8,9 +8,7 @@ use Illuminate\Support\Facades\Auth;
class Product extends SoftDeletesModel class Product extends SoftDeletesModel
{ {
protected $table = "product"; protected $table = "product";
protected $casts = ['factor_item_ids' => 'json'];
protected static function booted() protected static function booted()
{ {
static::addGlobalScope(new AdminProjectScope()); static::addGlobalScope(new AdminProjectScope());

Loading…
Cancel
Save