diff --git a/app/Http/Controllers/Api/ProfileController.php b/app/Http/Controllers/Api/ProfileController.php index 5db28fb..a5ef02a 100644 --- a/app/Http/Controllers/Api/ProfileController.php +++ b/app/Http/Controllers/Api/ProfileController.php @@ -136,7 +136,7 @@ class ProfileController extends Controller $user = Auth::user(); $profile = $user->profile; $profileId = $user->role === 'petani' ? $profile->id : $id; - dd($profileId); + $profile = Profile::with('desaKelurahan') ->when($profileId, fn($q,$v) => $q->where('id',$v)) ->where('user_id', Auth::id())->first();