mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-11 18:54:33 +00:00
33 lines
632 B
PHP
33 lines
632 B
PHP
<?php
|
|
|
|
namespace Gloudemans\Tests\Shoppingcart\Fixtures;
|
|
|
|
use Gloudemans\Shoppingcart\Contracts\Buyable;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class BuyableProductTrait extends Model implements Buyable
|
|
{
|
|
use \Gloudemans\Shoppingcart\CanBeBought;
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $fillable = [
|
|
'id',
|
|
'name',
|
|
'title',
|
|
'description',
|
|
'price',
|
|
'weight'
|
|
];
|
|
|
|
protected $attributes = [
|
|
'id' => 1,
|
|
'name' => 'Item name',
|
|
'price' => 10.00,
|
|
'weight' => 0,
|
|
];
|
|
}
|