format() == 'json') { return $next($request); } else { return parent::handle($request, $next); } } }