php - How to change error reporting level in Laravel 4? -
how can change php error_reporting in l4?
i found http://forums.laravel.io/viewtopic.php?id=6072, it's l3 , can't figure out how achieve same goal, prevent application throwing exception on php e_notice.
user "your common sense" (awesome name btw) right fixing error. welcome in 2013, 'undefined index error' thing past these days.
except if working legacy code can't altered simple... here go:
in file vendor/laravel/framework/src/illuminate/foundation/start.php error_reporting() set -1, aka: "report errors". try change level of error_reporting, link manual: http://php.net/manual/en/function.error-reporting.php
edit global.php in /app directory, , add @ bottom: error_reporting(e_error | e_warning | e_parse);
undefined index errors wont show anymore. feel free adjust level needs.
[edit] ow way: in app/config/app.php (or app/config/-environment-/app.php can alter debug false. in way user of app wont getting technical error-messages.
Comments
Post a Comment