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