Allow supression of debug warning for demo

This commit is contained in:
snipe 2016-12-01 00:48:43 -08:00
parent 68b9ffb908
commit 5bca1ed2b6
2 changed files with 2 additions and 1 deletions

View file

@ -18,7 +18,7 @@ class CheckForDebug
{
view()->share('debug_in_production', false);
if (((Auth::check() && (Auth::user()->isSuperUser()))) && (app()->environment()=='production') && (config('app.debug')===true)) {
if (((Auth::check() && (Auth::user()->isSuperUser()))) && (app()->environment()=='production') && (config('app.warn_debug')===true) && (config('app.debug')===true)) {
view()->share('debug_in_production', true);
}

View file

@ -27,6 +27,7 @@ return [
*/
'debug' => env('APP_DEBUG', false),
'warn_debug' => env('WARN_DEBUG', true),
/*
|--------------------------------------------------------------------------