Update BuyableProduct.php

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

View File

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