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