mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-23 15:41:24 +00:00
Update BuyableProduct.php
This commit is contained in:
@@ -7,6 +7,13 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
|
|
||||||
class BuyableProduct extends Model implements Buyable
|
class BuyableProduct extends Model implements Buyable
|
||||||
{
|
{
|
||||||
|
protected $attributes = [
|
||||||
|
'id' => 1,
|
||||||
|
'name' => 'Item name',
|
||||||
|
'price' => 10.00,
|
||||||
|
'weight' => 0,
|
||||||
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the identifier of the Buyable item.
|
* Get the identifier of the Buyable item.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user