$id = Auth::user()->id;print_r($id);
$user = Auth::user();
echo $user->id;
echo $user->name;
echo $user->email;
$user = auth()->user(); print($user->id);print($user->name);print($user->email);
@auth
// user logged in
@else
// not logged in
@endauth
{{Auth::user()->username}}
Auth::user();
use IlluminateSupportFacadesAuth;
// Retrieve the currently authenticated user...
$user = Auth::user();
// Retrieve the currently authenticated user's ID...
$id = Auth::id();