Total Complexity | 2 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Link extends Model |
||
8 | { |
||
9 | /** |
||
10 | * The table associated with the model. |
||
11 | * |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $table = 'links'; |
||
15 | |||
16 | /** |
||
17 | * The attributes that should be casted to native types. |
||
18 | * |
||
19 | * @var array |
||
20 | */ |
||
21 | protected $casts = [ |
||
22 | 'data' => 'object', |
||
23 | ]; |
||
24 | |||
25 | /** |
||
26 | * The attributes that are mass assignable. |
||
27 | * |
||
28 | * @var array |
||
29 | */ |
||
30 | protected $fillable = [ |
||
31 | 'module_id', |
||
32 | 'label', |
||
33 | 'icon', |
||
34 | 'type', |
||
35 | 'url', |
||
36 | 'sequence', |
||
37 | 'data', |
||
38 | ]; |
||
39 | |||
40 | protected function initTablePrefix() |
||
43 | } |
||
44 | |||
45 | public function module() |
||
50 |