Total Complexity | 1 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Role extends Model implements RoleHasRelationsContract |
||
8 | { |
||
9 | use RoleHasRelations; |
||
10 | |||
11 | /** |
||
12 | * The attributes that are mass assignable. |
||
13 | * |
||
14 | * @var array |
||
15 | */ |
||
16 | protected $fillable = [ |
||
17 | 'name', |
||
18 | 'slug', |
||
19 | 'description', |
||
20 | 'css', |
||
21 | 'level', |
||
22 | 'is_deletable' |
||
23 | ]; |
||
24 | |||
25 | /** |
||
26 | * The attributes that should be cast has a certain type. |
||
27 | * |
||
28 | * @var array |
||
29 | */ |
||
30 | protected $cast = [ |
||
31 | 'is_deletable' => 'boolean' |
||
32 | ]; |
||
33 | |||
34 | /** |
||
35 | * Return the field to slug. |
||
36 | * |
||
37 | * @return string |
||
38 | */ |
||
39 | public function slugStrategy(): string |
||
44 |