I have a site in production on a forge server. I've updated the APP_URL in the env file and I now cannot login. It redirects to the landing page every time - it is not checking login credentials and so I assume it failing on a middleware. I've cleared the config and cache. I feel like I'm missing something obvious but can't figure it out. Any ideas? Thanks
Try deleting the cookies for the site and do a hard refresh on the page. Usually Ctrl Shift R
You can also temporarily update the .env file to set debug and environment to on and development, do a config:cache again, and refresh the page again. Once you're done diagnosing, turn it off as soon as possible.
@ltloafer did you maybe broke the .env file by introducing a space in the url or something? If there is a space make sure that you wrap the value in quotes.
Because I think that the APP_URL has nothing to do with the login process..
It seems like you broke the connection to the database.
Have you tried reverting the APP_URL to the previous state and that fixes the issue?
@ltloafer by no difference you mean you still get the error? If so than the problem is not what you say it is.. Try in a different browser, or incognito mode if you use Chrome and make sure that is not any plugin doing that behavior to you.