Total Complexity | 2 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class SeoTag extends Model |
||
10 | { |
||
11 | use HasFactory; |
||
12 | |||
13 | /** |
||
14 | * The attributes that aren't mass assignable. |
||
15 | * |
||
16 | * @var array<string>|bool |
||
17 | */ |
||
18 | protected $guarded = []; |
||
19 | |||
20 | /** |
||
21 | * The attributes that should be cast. |
||
22 | * |
||
23 | * @var array |
||
24 | */ |
||
25 | protected $casts = [ |
||
26 | 'tags' => AsCollection::class, |
||
27 | ]; |
||
28 | |||
29 | /** |
||
30 | * @return string |
||
31 | */ |
||
32 | 5 | public function getUrlColumnName(): string |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return string |
||
39 | */ |
||
40 | 5 | public function getTagsColumnName(): string |
|
45 |