Laravel 5 - env local debug true no errors shown

前端 未结 12 1639
天命终不由人
天命终不由人 2020-12-08 19:52

I\'m trying to enable the debug for my app but it looks like I don\'t have any feedback.

The environment is set to local (in the .env file) and if I run



        
12条回答
  •  無奈伤痛
    2020-12-08 20:15

    I actually solved the problem by un-commenting the line
    Dotenv::load(__DIR__.'/../'); in bootstrap/app.php.

    So that it actually loads it before compiling it and caching it ,
    well running php artisan optimize does it for you , if you have Laravel (Not Lumen)

    But if you look at their documentation it is commented out by default, i think they might have fixed it by now http://lumen.laravel.com/docs/installation.

提交回复
热议问题