From eecc4a28d3b3a85905848f132f65002722e633fe Mon Sep 17 00:00:00 2001 From: "fauzgabriel@gmail.com" Date: Wed, 22 Apr 2026 14:17:45 +0700 Subject: [PATCH] debug --- app/Http/Controllers/Api/ProfileController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/ProfileController.php b/app/Http/Controllers/Api/ProfileController.php index c02b7a5..5db28fb 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();