So, You will got this problem after you run command php artisan config:cache
And try to get data from .env. It always got null.
But after you run php artisan config:clear.
You will get data from .env.
It's intended. You should use env ONLY in config files. I bet even docs says that somewhere.
@decadence Ahhh!! Ok got it!
Most helpful comment
It's intended. You should use env ONLY in config files. I bet even docs says that somewhere.