Laravel 5.2 not reading env file

前端 未结 26 2309
时光说笑
时光说笑 2020-11-28 20:52

After upgrading to Laravel 5.2, none of my .env file values are being read. I followed the upgrade instructions; none of my config files were changed except aut

26条回答
  •  被撕碎了的回忆
    2020-11-28 21:20

    When you fired command php artisan config:cache then it will wipe out all the env variables and env() will give null values, try running following command and boom there your env() again begin to catch all env variable

    php artisan config:clear
    

提交回复
热议问题