laravel extend auth methods code example Example 1: get user auth in laravel Auth::user(); Example 2: laravel force login by id Auth::login($user);