Uzyskaj zalogowany identyfikator użytkownika Laravel
$id = Auth::user()->id;print_r($id);
Proud Pigeon
$id = Auth::user()->id;print_r($id);
$user = auth()->user(); print($user->id);print($user->name);print($user->email);
$user = Auth::user();
echo $user->id;
echo $user->name;
echo $user->email;
@auth
// user logged in
@else
// not logged in
@endauth