laravel create users and passwords automatically code example Example 1: get user auth in laravel Auth::user(); Example 2: laravel force login by id Auth::login($user);