| 1 | <?php |
||
| 9 | class SpecPrice extends Repository |
||
| 10 | { |
||
| 11 | use HasMeta, Presenterable; |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $table = 'product_specifications_price'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected $fillable = ['lot_id','product_id','new_price','old_price','sale','name']; |
||
| 21 | |||
| 22 | protected $presenter = SpecPricePresenter::class; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 26 | */ |
||
| 27 | public function product() |
||
| 31 | |||
| 32 | public function improvedSpecs() |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var bool |
||
| 39 | */ |
||
| 40 | public $timestamps = false; |
||
| 41 | } |