24 lines
464 B
PHP
24 lines
464 B
PHP
<?php
|
|
|
|
namespace Modules\Admin\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Province extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'tbl_provinces';
|
|
protected $primaryKey = 'province_id';
|
|
protected $fillable = [
|
|
'province_name',
|
|
'country_id',
|
|
'status',
|
|
];
|
|
public function country()
|
|
{
|
|
return $this->belongsTo(Country::class);
|
|
}
|
|
}
|