new commit

This commit is contained in:
Fiqh Pratama
2025-10-12 18:29:07 +07:00
parent aa3a1807aa
commit 9952968d82
26 changed files with 404 additions and 173 deletions
+5
View File
@@ -168,6 +168,11 @@ class Admin extends Authenticatable
return $this->belongsTo(Rayon::class, 'rayon_id');
}
public function rayon()
{
return $this->belongsTo(Rayon::class, 'rayon_id');
}
public function getRegion()
{
return $this->belongsTo(Region::class, 'region_id');
+5
View File
@@ -16,4 +16,9 @@ class Rayon extends Model
{
return $this->belongsTo('App\Models\Cabang');
}
public function region()
{
return $this->belongsTo(\App\Models\Region::class, 'region_id', 'id');
}
}