so i guess i have to hard code things https://github.com/vlucas/phpdotenv/issues/76#issuecomment-167806230
Feb 27, 2016
2
Level 5
php artisan config:cache cant access my .env variable
Its Odd to Know that when i try to optimize my App using php artisan config:cache
it messes up the code , all env('$variable') returns null
but if you tried php artisan config:clear it will start to be used again...
Any Work Around here? ive read that using env() during config cache really returns null they say we need to change it to config() but im not getting any good result also
Level 5
Please or to participate in this conversation.