laravel auth id user code example
Example 1: get id user login laravel
use Auth;
$user_id = Auth::user()->id;
Example 2: laravel auth namespace
use Illuminate\Support\Facades\Auth;
Example 3: make auth in laravel 7
composer require laravel/ui "^2.0"
Example 4: laravel force login by id
Auth::login($user);