mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-12 02:55:13 +00:00
19 lines
397 B
PHP
19 lines
397 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;
|
|
|
|
protected $attributes = [
|
|
'id' => 1,
|
|
'name' => 'Item name',
|
|
'price' => 10.00,
|
|
'weight' => 0,
|
|
];
|
|
}
|