xxxxxxxxxx
$user = auth()->user(); print($user->id);print($user->name);print($user->email);
xxxxxxxxxx
use Illuminate\Support\Facades\Auth;
// Retrieve the currently authenticated user...
$user = Auth::user();
// Retrieve the currently authenticated user's ID...
$id = Auth::id();
xxxxxxxxxx
use Illuminate\Support\Facades\Auth;
// Get the currently authenticated user...
$user = Auth::user();