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