This commit is contained in:
2026-04-22 14:17:45 +07:00
parent f0b6049201
commit eecc4a28d3
@@ -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();