1 | <?php |
||
22 | class Make extends Eloquent\Model |
||
23 | { |
||
24 | use Eloquent\SoftDeletes; |
||
25 | |||
26 | /** |
||
27 | * We do not want any timestamps. |
||
28 | * |
||
29 | * @var bool |
||
30 | */ |
||
31 | public $timestamps = false; |
||
32 | /** |
||
33 | * @var array |
||
34 | */ |
||
35 | protected $dates = ['deleted_at']; |
||
36 | /** |
||
37 | * The attributes that are not mass assignable. |
||
38 | * |
||
39 | * @var array |
||
40 | */ |
||
41 | protected $guarded = []; |
||
42 | |||
43 | 23 | public static function boot() |
|
54 | |||
55 | /** |
||
56 | * Models of this make. |
||
57 | * |
||
58 | * @return Eloquent\Relations\HasMany |
||
59 | */ |
||
60 | public function models() |
||
64 | |||
65 | /** |
||
66 | * Rack this make is located in. |
||
67 | * |
||
68 | * @return Eloquent\Relations\HasMany |
||
69 | */ |
||
70 | public function racks() |
||
74 | |||
75 | /** |
||
76 | * Purchases of this make. |
||
77 | * |
||
78 | * @return Eloquent\Relations\HasMany |
||
79 | */ |
||
80 | public function purchases() |
||
84 | |||
85 | /** |
||
86 | * Guitars of this make. |
||
87 | * |
||
88 | * @return Eloquent\Relations\HasMany |
||
89 | */ |
||
90 | public function guitars() |
||
94 | } |
||
95 |