use Auth;
$user_id = Auth::user()->id;
$id = Auth::user()->id;print_r($id);
{{ auth()->user()->email }}
{{Auth::user()->username}}
$userId = Auth::id();
// Get the currently authenticated user's ID...
$id = Auth::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()
use Auth;
//find auth
function __construct()
{
$this->middleware('auth');
}
//end find auth
$id = Auth::id();