DEV Community

RaoKamranshauket
RaoKamranshauket

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 https://raokamranshauket-musical-sniffle-7q6wrp46xpgcgwx-80.preview.app.github.dev/. 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 https://raokamranshauket-musical-sniffle-7q6wrp46xpgcgwx-80.preview.app.github.dev/login 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)