31 lines
547 B
PHP
31 lines
547 B
PHP
<?php
|
|
|
|
namespace App\Models\System\Location;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Spatie\Translatable\HasTranslations;
|
|
|
|
class Province extends Model
|
|
{
|
|
use HasFactory;
|
|
use HasTranslations;
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array<int, string>
|
|
*/
|
|
protected $fillable = [
|
|
'region',
|
|
'name',
|
|
];
|
|
|
|
/**
|
|
* Translatable fields
|
|
*
|
|
* @var array<string>
|
|
*/
|
|
public $translatable = ['name'];
|
|
}
|