DEV Community


Posted on

Why does my Laravel app on GitHub Code Spaces redirect to localhost for login, and how can I change it?

When accessing my code space, it is initially running on the URL However, when I click on the login link, it redirects to http://localhost/login, which is not accessible.

I would like to permanently change my route to so that it works accurately.

I change the APP_URL in .env and config/app.php but nothing works.

I would appreciate any assistance in achieving this.

Top comments (0)