Laravel 5.2 not reading env file

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

    I missed this in the upgrade instructions:

    Add an env configuration option to your app.php configuration file that looks like the following: 'env' => env('APP_ENV', 'production')

    Adding this line got the local .env file to be read in correctly.

提交回复
热议问题