Total Complexity | 1 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
9 | class Region extends Model |
||
10 | { |
||
11 | use HasFactory; |
||
12 | use HasTranslations; |
||
13 | |||
14 | /** |
||
15 | * The attributes that aren't mass assignable. |
||
16 | * |
||
17 | * @var array |
||
18 | */ |
||
19 | protected $guarded = []; |
||
20 | |||
21 | /** |
||
22 | * The attributes that are translatable. |
||
23 | * |
||
24 | * @var array |
||
25 | */ |
||
26 | public $translatable = ['name']; |
||
27 | |||
28 | |||
29 | /** |
||
30 | * Returns the country of the region. |
||
31 | */ |
||
32 | public function country() |
||
39 |