34 lines
650 B
PHP
34 lines
650 B
PHP
<?php
|
|
|
|
namespace Modules\Admin\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Modules\Admin\Database\factories\MunicipalityFactory;
|
|
|
|
class Municipality extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = "tbl_municipalities";
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*/
|
|
protected $fillable = [
|
|
'name',
|
|
'distict_id',
|
|
'status',
|
|
'description',
|
|
'remarks',
|
|
'createdBy',
|
|
'updatedBy',
|
|
];
|
|
|
|
protected function district()
|
|
{
|
|
return $this->belongsTo(District::class, 'district_id');
|
|
}
|
|
|
|
}
|