| 1 | <?php |
||
| 8 | class Involved extends Repository |
||
| 9 | { |
||
| 10 | use ActivateableTrait; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $table = 'involved'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected $fillable = ['user_id', 'product_id','lot_id', 'active', 'count','price_id','color_id','size_id']; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 24 | */ |
||
| 25 | public function user() |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
| 32 | */ |
||
| 33 | public function product() |
||
| 37 | |||
| 38 | public function lot() |
||
| 42 | |||
| 43 | } |