Update BuyableProductTrait.php

This commit is contained in:
Patrick
2021-01-18 22:29:41 +01:00
committed by GitHub
parent 994004b175
commit bad0597ae0

View File

@@ -9,6 +9,18 @@ class BuyableProductTrait extends Model implements Buyable
{
use \Gloudemans\Shoppingcart\CanBeBought;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'id',
'name',
'price',
'weight'
];
protected $attributes = [
'id' => 1,
'name' => 'Item name',