mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-12 11:05:11 +00:00
Update BuyableProductTrait.php
This commit is contained in:
@@ -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,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user