debug clear

This commit is contained in:
2026-04-22 14:23:13 +07:00
parent eecc4a28d3
commit 4ad1b71683
@@ -136,7 +136,7 @@ class ProfileController extends Controller
$user = Auth::user(); $user = Auth::user();
$profile = $user->profile; $profile = $user->profile;
$profileId = $user->role === 'petani' ? $profile->id : $id; $profileId = $user->role === 'petani' ? $profile->id : $id;
dd($profileId);
$profile = Profile::with('desaKelurahan') $profile = Profile::with('desaKelurahan')
->when($profileId, fn($q,$v) => $q->where('id',$v)) ->when($profileId, fn($q,$v) => $q->where('id',$v))
->where('user_id', Auth::id())->first(); ->where('user_id', Auth::id())->first();