debug
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user