Symfony Exception

Error

HTTP 500 Internal Server Error

Class "Fideloper\Proxy\TrustProxies" not found

Exception

Error

  1. namespace App\Http\Middleware;
  2. use Fideloper\Proxy\TrustProxies as Middleware;
  3. use Illuminate\Http\Request;
  4. class TrustProxies extends Middleware
  5. {
  6.     /**
  7.      * The trusted proxies for this application.
  8.      *
  9.      * @var array|string
  1.          *
  2.          * @param  string $file
  3.          * @return void
  4.          */
  5.         self::$includeFile \Closure::bind(static function($file) {
  6.             include $file;
  7.         }, nullnull);
  8.     }
  9. }
in /var/www/madewithcare/vendor/composer/ClassLoader.php Composer\Autoload\{closure} (line 427)
  1.      */
  2.     public function loadClass($class)
  3.     {
  4.         if ($file $this->findFile($class)) {
  5.             $includeFile self::$includeFile;
  6.             $includeFile($file);
  7.             return true;
  8.         }
  9.         return null;
ClassLoader->loadClass()
  1.         if ($concrete instanceof Closure) {
  2.             return $concrete($this$this->getLastParameterOverride());
  3.         }
  4.         try {
  5.             $reflector = new ReflectionClass($concrete);
  6.         } catch (ReflectionException $e) {
  7.             throw new BindingResolutionException("Target class [$concrete] does not exist."0$e);
  8.         }
  9.         // If the type is not instantiable, the developer is attempting to resolve
  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.         $object $this->isBuildable($concrete$abstract)
  5.             ? $this->build($concrete)
  6.             : $this->make($concrete);
  7.         // If we defined any extenders for this type, we'll need to spin through them
  8.         // and apply them to the object being built. This allows for the extension
  9.         // of services, such as changing configuration or decorating the object.
  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.         $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/madewithcare/public/index.php (line 54)
  1. |
  2. */
  3. $kernel $app->make(Illuminate\Contracts\Http\Kernel::class);
  4. $response $kernel->handle(
  5.     $request Illuminate\Http\Request::capture()
  6. );
  7. $response->send();

Stack Trace

Error
Error:
Class "Fideloper\Proxy\TrustProxies" not found

  at /var/www/madewithcare/app/Http/Middleware/TrustProxies.php:8
  at include()
     (/var/www/madewithcare/vendor/composer/ClassLoader.php:576)
  at Composer\Autoload\{closure}()
     (/var/www/madewithcare/vendor/composer/ClassLoader.php:427)
  at Composer\Autoload\ClassLoader->loadClass()
  at ReflectionClass->__construct()
     (/var/www/madewithcare/vendor/laravel/framework/src/Illuminate/Container/Container.php:912)
  at Illuminate\Container\Container->build()
     (/var/www/madewithcare/vendor/laravel/framework/src/Illuminate/Container/Container.php:795)
  at Illuminate\Container\Container->resolve()
     (/var/www/madewithcare/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:957)
  at Illuminate\Foundation\Application->resolve()
     (/var/www/madewithcare/vendor/laravel/framework/src/Illuminate/Container/Container.php:731)
  at Illuminate\Container\Container->make()
     (/var/www/madewithcare/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:942)
  at Illuminate\Foundation\Application->make()
     (/var/www/madewithcare/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:172)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/var/www/madewithcare/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:119)
  at Illuminate\Pipeline\Pipeline->then()
     (/var/www/madewithcare/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:175)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
     (/var/www/madewithcare/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144)
  at Illuminate\Foundation\Http\Kernel->handle()
     (/var/www/madewithcare/public/index.php:54)