use Auth;
$user_id = Auth::user()->id;
{{Auth::user()->username}}
$userId = Auth::id();
// Get the currently authenticated user's ID...
$id = Auth::id();
Auth::user();
use IlluminateSupportFacadesAuth;
// Retrieve the currently authenticated user...
$user = Auth::user();
// Retrieve the currently authenticated user's ID...
$id = Auth::id();
auth()->id()