mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-11 18:54:33 +00:00
Update BuyableProduct.php
This commit is contained in:
@@ -7,6 +7,18 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
|
|
||||||
class BuyableProduct extends Model implements Buyable
|
class BuyableProduct extends Model implements Buyable
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* The attributes that are mass assignable.
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
protected $fillable = [
|
||||||
|
'id',
|
||||||
|
'name',
|
||||||
|
'price',
|
||||||
|
'weight'
|
||||||
|
];
|
||||||
|
|
||||||
protected $attributes = [
|
protected $attributes = [
|
||||||
'id' => 1,
|
'id' => 1,
|
||||||
'name' => 'Item name',
|
'name' => 'Item name',
|
||||||
|
|||||||
Reference in New Issue
Block a user