Laravel 5.2 not reading env file

前端 未结 26 2312
时光说笑
时光说笑 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:42

    If any of your .env variables contains white space, make sure you wrap them in double-quotes. For example:

    SITE_NAME="My website"

    Don't forget to clear your cache before testing:

    php artisan config:cache
    php artisan config:clear
    

提交回复
热议问题