application = $application; } /** * @param $request * @param Closure $next * * @return mixed */ public function handle($request, Closure $next) { // only run view:clear if we're not on production if ($this->application->environment() !== 'production') { Artisan::call('view:clear'); } return $next($request); } }