I did below changes when updated from laravel 10 to 11:
- Changed APP_ENV=local to APP_ENV=development in .env
- Added $url->forceScheme('http'); AppServiceProvider.php boot function
- The browser was already pointing to https://127.0.0.1:8000/login and
causing same issue again so I needed to manually remove the https to
http and it resolve the issue.
Thanks.