share('debug_in_production', false); if (((Auth::check() && (Auth::user()->isSuperUser()))) && (app()->environment()=='production') && (config('app.warn_debug')===true) && (config('app.debug')===true)) { view()->share('debug_in_production', true); } return $next($request); } }