Symfony Exception

Error

HTTP 500 Internal Server Error

Undefined constant Illuminate\Http\Request::HEADER_X_FORWARDED_ALL

Exception

Error

  1.             throw $e;
  2.         }
  3.         array_pop($this->buildStack);
  4.         return $reflector->newInstanceArgs($instances);
  5.     }
  6.     /**
  7.      * Resolve all of the dependencies from the ReflectionParameters.
  8.      *
  1.             throw $e;
  2.         }
  3.         array_pop($this->buildStack);
  4.         return $reflector->newInstanceArgs($instances);
  5.     }
  6.     /**
  7.      * Resolve all of the dependencies from the ReflectionParameters.
  8.      *
  1.         // We're ready to instantiate an instance of the concrete type registered for
  2.         // the binding. This will instantiate the types, as well as resolve any of
  3.         // its "nested" dependencies recursively until all have gotten resolved.
  4.         if ($this->isBuildable($concrete$abstract)) {
  5.             $object $this->build($concrete);
  6.         } else {
  7.             $object $this->make($concrete);
  8.         }
  9.         // If we defined any extenders for this type, we'll need to spin through them
  1.      */
  2.     protected function resolve($abstract$parameters = [], $raiseEvents true)
  3.     {
  4.         $this->loadDeferredProviderIfNeeded($abstract $this->getAlias($abstract));
  5.         return parent::resolve($abstract$parameters$raiseEvents);
  6.     }
  7.     /**
  8.      * Load the deferred provider if the given type is a deferred service and the instance has not been loaded.
  9.      *
  1.      *
  2.      * @throws \Illuminate\Contracts\Container\BindingResolutionException
  3.      */
  4.     public function make($abstract, array $parameters = [])
  5.     {
  6.         return $this->resolve($abstract$parameters);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      *
  1.      */
  2.     public function make($abstract, array $parameters = [])
  3.     {
  4.         $this->loadDeferredProviderIfNeeded($abstract $this->getAlias($abstract));
  5.         return parent::make($abstract$parameters);
  6.     }
  7.     /**
  8.      * Resolve the given type from the container.
  9.      *
  1.                         [$name$parameters] = $this->parsePipeString($pipe);
  2.                         // If the pipe is a string we will parse the string and resolve the class out
  3.                         // of the dependency injection container. We can then build a callable and
  4.                         // execute the pipe function giving in the parameters that are required.
  5.                         $pipe $this->getContainer()->make($name);
  6.                         $parameters array_merge([$passable$stack], $parameters);
  7.                     } else {
  8.                         // If the pipe is already an object we'll just make a callable and pass it to
  9.                         // the pipe as-is. There is no need to do any extra parsing and formatting
  1.      */
  2.     public function handle($requestClosure $next)
  3.     {
  4.         $this->clean($request);
  5.         return $next($request);
  6.     }
  7.     /**
  8.      * Clean the request's data.
  9.      *
  1.             if ($callback($request)) {
  2.                 return $next($request);
  3.             }
  4.         }
  5.         return parent::handle($request$next);
  6.     }
  7.     /**
  8.      * Transform the given value.
  9.      *
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.      */
  2.     public function handle($requestClosure $next)
  3.     {
  4.         $this->clean($request);
  5.         return $next($request);
  6.     }
  7.     /**
  8.      * Clean the request's data.
  9.      *
  1.             if ($callback($request)) {
  2.                 return $next($request);
  3.             }
  4.         }
  5.         return parent::handle($request$next);
  6.     }
  7.     /**
  8.      * Transform the given value.
  9.      *
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.         if ($max && $request->server('CONTENT_LENGTH') > $max) {
  2.             throw new PostTooLargeException;
  3.         }
  4.         return $next($request);
  5.     }
  6.     /**
  7.      * Determine the server 'post_max_size' as bytes.
  8.      *
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.                 null,
  2.                 $this->getHeaders($data)
  3.             );
  4.         }
  5.         return $next($request);
  6.     }
  7.     /**
  8.      * Determine if the incoming request has a maintenance mode bypass cookie.
  9.      *
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.     {
  2.         $pipeline array_reduce(
  3.             array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
  4.         );
  5.         return $pipeline($this->passable);
  6.     }
  7.     /**
  8.      * Run the pipeline and return the result.
  9.      *
  1.         $this->bootstrap();
  2.         return (new Pipeline($this->app))
  3.                     ->send($request)
  4.                     ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
  5.                     ->then($this->dispatchToRouter());
  6.     }
  7.     /**
  8.      * Bootstrap the application for HTTP requests.
  9.      *
  1.         $this->requestStartedAt Carbon::now();
  2.         try {
  3.             $request->enableHttpMethodParameterOverride();
  4.             $response $this->sendRequestThroughRouter($request);
  5.         } catch (Throwable $e) {
  6.             $this->reportException($e);
  7.             $response $this->renderException($request$e);
  8.         }
Kernel->handle() in /var/www/laravel/public/index.php (line 55)
  1. */
  2. $kernel $app->make(Illuminate\Contracts\Http\Kernel::class);
  3. $response $kernel->handle(
  4.     $request Illuminate\Http\Request::capture()
  5. );
  6. $response->send();
  7. $kernel->terminate($request$response);

Stack Trace

Error
Error:
Undefined constant Illuminate\Http\Request::HEADER_X_FORWARDED_ALL

  at /var/www/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php:929
  at ReflectionClass->newInstanceArgs()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php:929)
  at Illuminate\Container\Container->build()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php:770)
  at Illuminate\Container\Container->resolve()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:856)
  at Illuminate\Foundation\Application->resolve()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php:706)
  at Illuminate\Container\Container->make()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:841)
  at Illuminate\Foundation\Application->make()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:169)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
  at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31)
  at Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
  at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:40)
  at Illuminate\Foundation\Http\Middleware\TrimStrings->handle()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27)
  at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:86)
  at Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:116)
  at Illuminate\Pipeline\Pipeline->then()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:165)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:134)
  at Illuminate\Foundation\Http\Kernel->handle()
     (/var/www/laravel/public/index.php:55)                
Undefined constant Illuminate\Http\Request::HEADER_X_FORWARDED_ALL (500 Internal Server Error)

Symfony Exception

Error

HTTP 500 Internal Server Error

Undefined constant Illuminate\Http\Request::HEADER_X_FORWARDED_ALL

Exception

Error

  1.             throw $e;
  2.         }
  3.         array_pop($this->buildStack);
  4.         return $reflector->newInstanceArgs($instances);
  5.     }
  6.     /**
  7.      * Resolve all of the dependencies from the ReflectionParameters.
  8.      *
  1.             throw $e;
  2.         }
  3.         array_pop($this->buildStack);
  4.         return $reflector->newInstanceArgs($instances);
  5.     }
  6.     /**
  7.      * Resolve all of the dependencies from the ReflectionParameters.
  8.      *
  1.         // We're ready to instantiate an instance of the concrete type registered for
  2.         // the binding. This will instantiate the types, as well as resolve any of
  3.         // its "nested" dependencies recursively until all have gotten resolved.
  4.         if ($this->isBuildable($concrete$abstract)) {
  5.             $object $this->build($concrete);
  6.         } else {
  7.             $object $this->make($concrete);
  8.         }
  9.         // If we defined any extenders for this type, we'll need to spin through them
  1.      */
  2.     protected function resolve($abstract$parameters = [], $raiseEvents true)
  3.     {
  4.         $this->loadDeferredProviderIfNeeded($abstract $this->getAlias($abstract));
  5.         return parent::resolve($abstract$parameters$raiseEvents);
  6.     }
  7.     /**
  8.      * Load the deferred provider if the given type is a deferred service and the instance has not been loaded.
  9.      *
  1.      *
  2.      * @throws \Illuminate\Contracts\Container\BindingResolutionException
  3.      */
  4.     public function make($abstract, array $parameters = [])
  5.     {
  6.         return $this->resolve($abstract$parameters);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      *
  1.      */
  2.     public function make($abstract, array $parameters = [])
  3.     {
  4.         $this->loadDeferredProviderIfNeeded($abstract $this->getAlias($abstract));
  5.         return parent::make($abstract$parameters);
  6.     }
  7.     /**
  8.      * Resolve the given type from the container.
  9.      *
  1.                 continue;
  2.             }
  3.             [$name] = $this->parseMiddleware($middleware);
  4.             $instance $this->app->make($name);
  5.             if (method_exists($instance'terminate')) {
  6.                 $instance->terminate($request$response);
  7.             }
  8.         }
  1.      * @param  \Illuminate\Http\Response  $response
  2.      * @return void
  3.      */
  4.     public function terminate($request$response)
  5.     {
  6.         $this->terminateMiddleware($request$response);
  7.         $this->app->terminate();
  8.         foreach ($this->requestLifecycleDurationHandlers as ['threshold' => $threshold'handler' => $handler]) {
  9.             $end ??= Carbon::now();
Kernel->terminate() in /var/www/laravel/public/index.php (line 60)
  1.     $request Illuminate\Http\Request::capture()
  2. );
  3. $response->send();
  4. $kernel->terminate($request$response);

Stack Trace

Error
Error:
Undefined constant Illuminate\Http\Request::HEADER_X_FORWARDED_ALL

  at /var/www/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php:929
  at ReflectionClass->newInstanceArgs()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php:929)
  at Illuminate\Container\Container->build()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php:770)
  at Illuminate\Container\Container->resolve()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:856)
  at Illuminate\Foundation\Application->resolve()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php:706)
  at Illuminate\Container\Container->make()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:841)
  at Illuminate\Foundation\Application->make()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:239)
  at Illuminate\Foundation\Http\Kernel->terminateMiddleware()
     (/var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:203)
  at Illuminate\Foundation\Http\Kernel->terminate()
     (/var/www/laravel/public/index.php:60)