After upgrade from 5.0 to 5.8, laravel stopped reading env variables if the env is different than .env file.
For example, if i have .env file with the USE_SSL=true inside it.
env('USE_SSL') will be true
But if i have .env file pointing to another env:
APP_ENV=dev
and than i'll have .env.dev file containing USE_SSL=true , env('USE_SSL') will be null.
- I tried
composer dump-autoloadandphp artisan config:clear, andphp artisan config:cache- no luck. cached or not, i can't get the value. - I tried naming the files .dev.env and .env.dev - no luck.
Any ideas would be appreciated.