Laravel breaks entire app on PHP notices

前端 未结 2 619
灰色年华
灰色年华 2020-12-14 21:18

How can I make Laravel 4 or 5 ignore PHP notices (like undefined variable notices) and not break the whole app only because of a simple \'undefined index or variable\' PHP n

2条回答
  •  悲哀的现实
    2020-12-14 21:36

    In Laravel 5.1 you can add error_reporting(0) or whatever you want into \app\Providers\AppServiceProvider.php boot() method

提交回复
热议问题