big update base struktur tahap 1

This commit is contained in:
Wian Drs
2026-07-27 16:24:09 +07:00
parent 2b3592c4c2
commit 1dd02baa72
169 changed files with 24405 additions and 977 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class WilayahDesa extends Model
{
protected $table = 'wilayah_desa';
protected $fillable = ['kecamatan_id', 'kode', 'nama'];
public function kecamatan(): BelongsTo
{
return $this->belongsTo(WilayahKecamatan::class, 'kecamatan_id');
}
}