check user auth request laravel authorization code example
Example 1: laravel get auth user id
// Get the currently authenticated user's ID...
$id = Auth::id();
Example 2: how to check if there is an authenticated user laravel
if (Auth::check()) { // The user is logged in... }