| 1 | <?php |
||
| 30 | class Sale extends Eloquent\Model |
||
| 31 | { |
||
| 32 | use Eloquent\SoftDeletes; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var array |
||
| 36 | */ |
||
| 37 | protected $dates = ['deleted_at']; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * The attributes that are not mass assignable. |
||
| 41 | * |
||
| 42 | * @var array |
||
| 43 | */ |
||
| 44 | protected $guarded = []; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Guitar that was sold. |
||
| 48 | * |
||
| 49 | * @return Eloquent\Relations\BelongsTo |
||
| 50 | */ |
||
| 51 | public function guitar() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Shop this guitar was sold to. |
||
| 58 | * |
||
| 59 | * @return Eloquent\Relations\BelongsTo |
||
| 60 | */ |
||
| 61 | public function shop() |
||
| 65 | } |
||
| 66 |