Laravel 5.2 not reading env file

前端 未结 26 2314
时光说笑
时光说笑 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-28 21:36

    if you did call config:cache during local development, you can undo this by deleting the bootstrap/cache/config.php file. and this is work for me.

    @Payal Pandav has given the comment above.

    I want to tell a simple workaround. Just edit the config.php file in the bootstrap/cache/ folder. And change the credentials. This worked for me. Please don't delete this file since this may contain other crucial data in the production environment.

提交回复
热议问题