From 994004b175e879b96b2766239d42d954a473cf9a Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 18 Jan 2021 22:29:26 +0100 Subject: [PATCH] Update BuyableProduct.php --- tests/Fixtures/BuyableProduct.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/Fixtures/BuyableProduct.php b/tests/Fixtures/BuyableProduct.php index e891f99..c9d9463 100644 --- a/tests/Fixtures/BuyableProduct.php +++ b/tests/Fixtures/BuyableProduct.php @@ -7,6 +7,18 @@ use Illuminate\Database\Eloquent\Model; class BuyableProduct extends Model implements Buyable { + /** + * The attributes that are mass assignable. + * + * @var array + */ + protected $fillable = [ + 'id', + 'name', + 'price', + 'weight' + ]; + protected $attributes = [ 'id' => 1, 'name' => 'Item name',