diff --git a/app/Http/Controllers/Api/ProfileController.php b/app/Http/Controllers/Api/ProfileController.php index 7fa299b..26078ce 100644 --- a/app/Http/Controllers/Api/ProfileController.php +++ b/app/Http/Controllers/Api/ProfileController.php @@ -135,6 +135,11 @@ class ProfileController extends Controller $user = Auth::user(); $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; $profile = Profile::with('desaKelurahan')