1 | <?php |
||
29 | class Service extends Model |
||
30 | { |
||
31 | /** |
||
32 | * The table associated with the model. |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $table = 'services'; |
||
37 | |||
38 | /** |
||
39 | * Fields that are not mass assignable. |
||
40 | * |
||
41 | * @var array |
||
42 | */ |
||
43 | protected $fillable = ['id', 'created_at', 'updated_at']; |
||
44 | |||
45 | /** |
||
46 | * Gets all service options associated with this service. |
||
47 | * |
||
48 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
49 | */ |
||
50 | public function options() |
||
54 | |||
55 | /** |
||
56 | * Returns all of the packs associated with a service, regardless of the service option. |
||
57 | * |
||
58 | * @return \Illuminate\Database\Eloquent\Relations\HasManyThrough |
||
59 | */ |
||
60 | public function packs() |
||
67 | |||
68 | /** |
||
69 | * Gets all servers associated with this service. |
||
70 | * |
||
71 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
72 | */ |
||
73 | public function servers() |
||
77 | } |
||
78 |