forked from admin/services_core
big update base struktur tahap 1
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
|
||||
class WilayahProvinsi extends Model
|
||||
{
|
||||
protected $table = 'wilayah_provinsi';
|
||||
|
||||
protected $fillable = ['kode', 'nama'];
|
||||
|
||||
public function kabupaten(): HasMany
|
||||
{
|
||||
return $this->hasMany(WilayahKabupaten::class, 'provinsi_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user