Update Master Data
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Wilayah;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class KabupatenKota extends Model
|
||||
{
|
||||
protected $table = 'master_kabupaten_kota';
|
||||
|
||||
protected $fillable = [
|
||||
'kode_kabupaten_kota',
|
||||
'nama_kabupaten_kota',
|
||||
'path',
|
||||
'provinsi_id',
|
||||
];
|
||||
|
||||
public function provinsi()
|
||||
{
|
||||
return $this->belongsTo(Provinsi::class, 'provinsi_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user