Misuse of env
Closed this issue · 1 comments
zek commented
When config cache is enabled calling env('DB_GEONAMES_CONNECTION')
returns null.
We better use config('geonames.connection')
michaeldrennen commented
Well actually, I shouldn't be using env() outside of the config files.
I have a few instances where that's an issue.
Thanks for pointing it out.