Update BuyableProductTrait.php

This commit is contained in:
Patrick
2021-01-18 21:52:18 +01:00
committed by GitHub
parent 80631bab39
commit 4a60b7cda1

View File

@@ -8,4 +8,11 @@ use Illuminate\Database\Eloquent\Model;
class BuyableProductTrait extends Model implements Buyable
{
use \Gloudemans\Shoppingcart\CanBeBought;
protected $attributes = [
'id' => 1,
'name' => 'Item name',
'price' => 10.00,
'weight' => 0,
];
}