laravel 8 access to authentication code example Example 1: get user auth in laravel Auth::user(); Example 2: laravel force login by id Auth::login($user);