This commit is contained in:
2026-04-23 14:52:57 +07:00
parent cf08e9828d
commit fdddf34d68
@@ -135,6 +135,11 @@ class ProfileController extends Controller
$user = Auth::user(); $user = Auth::user();
$profile = $user->profile; $profile = $user->profile;
if($user->role === 'petani') {
dd(["Petani dengan profile id => ", $profile->id]);
}else{
dd(["Fasilitator dengan profile id => ", $id]);
}
$profileId = ($user->role == 'petani') ? $profile->id : $id; $profileId = ($user->role == 'petani') ? $profile->id : $id;
$profile = Profile::with('desaKelurahan') $profile = Profile::with('desaKelurahan')