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