New-OMIS/Modules/Admin/app/Models/Province.php

24 lines
464 B
PHP
Raw Normal View History

2024-04-05 05:22:15 +00:00
<?php
2024-04-11 10:59:09 +00:00
namespace Modules\Admin\Models;
2024-04-05 05:22:15 +00:00
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Province extends Model
{
use HasFactory;
2024-04-10 09:36:30 +00:00
protected $table = 'tbl_provinces';
protected $primaryKey = 'province_id';
2024-04-05 05:22:15 +00:00
protected $fillable = [
'province_name',
'country_id',
'status',
];
public function country()
{
return $this->belongsTo(Country::class);
}
}