1 | <?php |
||
29 | class ServicePack extends Model |
||
30 | { |
||
31 | /** |
||
32 | * The table associated with the model. |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $table = 'service_packs'; |
||
37 | |||
38 | /** |
||
39 | * Fields that are not mass assignable. |
||
40 | * |
||
41 | * @var array |
||
42 | */ |
||
43 | protected $guarded = ['id', 'created_at', 'updated_at']; |
||
44 | |||
45 | /** |
||
46 | * Cast values to correct type. |
||
47 | * |
||
48 | * @var array |
||
49 | */ |
||
50 | protected $casts = [ |
||
51 | 'option' => 'integer', |
||
52 | 'build_memory' => 'integer', |
||
53 | 'build_swap' => 'integer', |
||
54 | 'build_cpu' => 'integer', |
||
55 | 'build_io' => 'integer', |
||
56 | 'selectable' => 'boolean', |
||
57 | 'visible' => 'boolean', |
||
58 | ]; |
||
59 | |||
60 | /** |
||
61 | * Gets option associated with a service pack. |
||
62 | * |
||
63 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
64 | */ |
||
65 | public function option() |
||
69 | } |
||
70 |