update api scramble telescope

This commit is contained in:
2026-03-17 09:58:11 +07:00
parent 3a9f3bd813
commit 106283903e
21 changed files with 797 additions and 61 deletions
+4 -2
View File
@@ -4,8 +4,10 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use App\Models\Wilayah\User;
use App\Models\User;
use App\Models\Wilayah\DesaKelurahan;
class Profile extends Model
{
use SoftDeletes;
@@ -31,7 +33,7 @@ class Profile extends Model
'deleted_by'
];
public function desakelurahan()
public function desaKelurahan()
{
return $this->belongsTo(DesaKelurahan::class, 'desa_kelurahan_id');
}
+2 -2
View File
@@ -20,11 +20,11 @@ class Kecamatan extends Model
'kabupaten_kota_id',
];
public function kabupatenkota() {
public function kabupatenKota() {
return $this->belongsTo(KabupatenKota::class, 'kabupaten_kota_id');
}
public function desakelurahan()
public function desaKelurahan()
{
return $this->hasMany(DesaKelurahan::class, 'kecamatan_id');
}