Laravel 5.2 not reading env file

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

    Wow. Good grief. It's because I had an env value with a space in it, not surrounded by quotes

    This

    SITE_NAME=My website
    

    Changed to this

    SITE_NAME="My website"
    

    Fixed it. I think this had to do with Laravel 5.2 now upgrading vlucas/phpdotenv from 1.1.1 to 2.1.0

提交回复
热议问题