What I don't get is how the .env file was even served when Laravel uses the public/index.php as starting point, so your root Folder should have been the public/ folder, not the application folder.
Mistakes like this happen, but it takes courage to post about it. Thanks for sharing it.