I'm working on a new project with Lumen and just noticed that the .env configuration sometimes doesn't work. It then uses the default locale and database settings, instead of mine.
I already tried to clear the cache and set the environment to production, but none of these have solved my problem.
APP_NAME=Lumen
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_LOCALE=de
APP_TIMEZONE=UTC
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=test
DB_USERNAME=root
DB_PASSWORD=
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
Instead of applying the locale and database configuration, it sometimes just uses the default configuration, as if the .env wasn't there.
An example of the error that sometimes occurs:
SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge'