1 | <?php |
||
13 | class IssueType extends Model |
||
14 | { |
||
15 | /** |
||
16 | * The database table used by the model. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $table = 'issue_types'; |
||
21 | |||
22 | /** |
||
23 | * Attributes that should be mass-assignable. |
||
24 | * |
||
25 | * @var array |
||
26 | */ |
||
27 | protected $fillable = ['parent_id', 'alias', 'title', 'position', 'enabled']; |
||
28 | |||
29 | /** |
||
30 | * The attributes excluded from the model's JSON form. |
||
31 | * |
||
32 | * @var array |
||
33 | */ |
||
34 | protected $hidden = []; |
||
35 | |||
36 | /** |
||
37 | * The attributes that should be casted to native types. |
||
38 | * |
||
39 | * @var array |
||
40 | */ |
||
41 | protected $casts = []; |
||
42 | |||
43 | public function issues() |
||
47 | } |
||
48 |