From bad0597ae0ef771a34d09ff254a633e23d3c6527 Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 18 Jan 2021 22:29:41 +0100 Subject: [PATCH] Update BuyableProductTrait.php --- tests/Fixtures/BuyableProductTrait.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/Fixtures/BuyableProductTrait.php b/tests/Fixtures/BuyableProductTrait.php index 9bfee7e..958e17e 100644 --- a/tests/Fixtures/BuyableProductTrait.php +++ b/tests/Fixtures/BuyableProductTrait.php @@ -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',