} try { $reflector = new ReflectionClass($concrete); } catch (ReflectionException $e) { throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e); } // If the type is not instantiable, the developer is attempting to resolve // an abstract type such as an Interface or Abstract Class and there is // no binding registered for the abstractions so we need to bail out. // We're ready to instantiate an instance of the concrete type registered for // the binding. This will instantiate the types, as well as resolve any of // its "nested" dependencies recursively until all have gotten resolved. if ($this->isBuildable($concrete, $abstract)) { $object = $this->build($concrete); } else { $object = $this->make($concrete); } // If we defined any extenders for this type, we'll need to spin through them */ protected function resolve($abstract, $parameters = [], $raiseEvents = true) { $this->loadDeferredProviderIfNeeded($abstract = $this->getAlias($abstract)); return parent::resolve($abstract, $parameters, $raiseEvents); } /** * Load the deferred provider if the given type is a deferred service and the instance has not been loaded. * { $excluded = collect($route->excludedMiddleware())->map(function ($name) { return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups); })->flatten()->values()->all(); $middleware = collect($route->gatherMiddleware())->map(function ($name) { return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups); })->flatten()->reject(function ($name) use ($route, $excluded) { return in_array($name, $excluded, true); })->values(); protected function runRouteWithinStack(Route $route, Request $request) { $shouldSkipMiddleware = $this->container->bound('middleware.disable') && $this->container->make('middleware.disable') === true; $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route); return (new Pipeline($this->container)) ->send($request) ->through($middleware) ->then(function ($request) use ($route) { // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); */ public function handle($request, Closure $next) { // Check if we're dealing with CORS and if we should handle it if (! $this->shouldRun($request)) { return $next($request); } // For Preflight, return the Preflight response if ($this->cors->isPreflightRequest($request)) { $response = $this->cors->handlePreflightRequest($request); // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); public function handle(Request $request, Closure $next) { $request::setTrustedProxies([], $this->getTrustedHeaderNames()); // Reset trusted proxies between requests $this->setTrustedProxyIpAddresses($request); return $next($request); } /** * Sets the trusted proxies on the request to the value of trustedproxy.proxies * // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); if ($concrete instanceof Closure) { return $concrete($this, $this->getLastParameterOverride()); } try { $reflector = new ReflectionClass($concrete); } catch (ReflectionException $e) { throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e); } // If the type is not instantiable, the developer is attempting to resolve if ($concrete instanceof Closure) { return $concrete($this, $this->getLastParameterOverride()); } try { $reflector = new ReflectionClass($concrete); } catch (ReflectionException $e) { throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e); } // If the type is not instantiable, the developer is attempting to resolve // We're ready to instantiate an instance of the concrete type registered for // the binding. This will instantiate the types, as well as resolve any of // its "nested" dependencies recursively until all have gotten resolved. if ($this->isBuildable($concrete, $abstract)) { $object = $this->build($concrete); } else { $object = $this->make($concrete); } // If we defined any extenders for this type, we'll need to spin through them */ protected function resolve($abstract, $parameters = [], $raiseEvents = true) { $this->loadDeferredProviderIfNeeded($abstract = $this->getAlias($abstract)); return parent::resolve($abstract, $parameters, $raiseEvents); } /** * Load the deferred provider if the given type is a deferred service and the instance has not been loaded. * { $excluded = collect($route->excludedMiddleware())->map(function ($name) { return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups); })->flatten()->values()->all(); $middleware = collect($route->gatherMiddleware())->map(function ($name) { return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups); })->flatten()->reject(function ($name) use ($route, $excluded) { return in_array($name, $excluded, true); })->values(); protected function runRouteWithinStack(Route $route, Request $request) { $shouldSkipMiddleware = $this->container->bound('middleware.disable') && $this->container->make('middleware.disable') === true; $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route); return (new Pipeline($this->container)) ->send($request) ->through($middleware) ->then(function ($request) use ($route) { // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); */ public function handle($request, Closure $next) { // Check if we're dealing with CORS and if we should handle it if (! $this->shouldRun($request)) { return $next($request); } // For Preflight, return the Preflight response if ($this->cors->isPreflightRequest($request)) { $response = $this->cors->handlePreflightRequest($request); // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); public function handle(Request $request, Closure $next) { $request::setTrustedProxies([], $this->getTrustedHeaderNames()); // Reset trusted proxies between requests $this->setTrustedProxyIpAddresses($request); return $next($request); } /** * Sets the trusted proxies on the request to the value of trustedproxy.proxies * // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e);
[2/2] BindingResolutionException |
|---|
Illuminate\Contracts\Container\BindingResolutionException:
Target class [App\Http\Controllers\ContactController] does not exist.
at /var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php:807
at Illuminate\Container\Container->build('App\\Http\\Controllers\\ContactController')
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php:687)
at Illuminate\Container\Container->resolve('App\\Http\\Controllers\\ContactController', array(), true)
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:796)
at Illuminate\Foundation\Application->resolve('App\\Http\\Controllers\\ContactController', array())
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php:633)
at Illuminate\Container\Container->make('App\\Http\\Controllers\\ContactController', array())
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:781)
at Illuminate\Foundation\Application->make('App\\Http\\Controllers\\ContactController')
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Route.php:253)
at Illuminate\Routing\Route->getController()
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Route.php:960)
at Illuminate\Routing\Route->controllerMiddleware()
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Route.php:921)
at Illuminate\Routing\Route->gatherMiddleware()
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:702)
at Illuminate\Routing\Router->gatherRouteMiddleware(object(Route))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:678)
at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:662)
at Illuminate\Routing\Router->runRoute(object(Request), object(Route))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:628)
at Illuminate\Routing\Router->dispatchToRoute(object(Request))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:617)
at Illuminate\Routing\Router->dispatch(object(Request))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:165)
at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27)
at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(object(Request), object(Closure))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:63)
at Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(object(Request), object(Closure))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/vhosts/partner10.com/httpdocs/vendor/fruitcake/laravel-cors/src/HandleCors.php:37)
at Fruitcake\Cors\HandleCors->handle(object(Request), object(Closure))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/vhosts/partner10.com/httpdocs/vendor/fideloper/proxy/src/TrustProxies.php:57)
at Fideloper\Proxy\TrustProxies->handle(object(Request), object(Closure))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103)
at Illuminate\Pipeline\Pipeline->then(object(Closure))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:140)
at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:109)
at Illuminate\Foundation\Http\Kernel->handle(object(Request))
(/var/www/vhosts/partner10.com/httpdocs/public/index.php:55)
|
[1/2] ReflectionException |
|---|
ReflectionException:
Class App\Http\Controllers\ContactController does not exist
at /var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php:805
at ReflectionClass->__construct('App\\Http\\Controllers\\ContactController')
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php:805)
at Illuminate\Container\Container->build('App\\Http\\Controllers\\ContactController')
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php:687)
at Illuminate\Container\Container->resolve('App\\Http\\Controllers\\ContactController', array(), true)
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:796)
at Illuminate\Foundation\Application->resolve('App\\Http\\Controllers\\ContactController', array())
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php:633)
at Illuminate\Container\Container->make('App\\Http\\Controllers\\ContactController', array())
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:781)
at Illuminate\Foundation\Application->make('App\\Http\\Controllers\\ContactController')
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Route.php:253)
at Illuminate\Routing\Route->getController()
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Route.php:960)
at Illuminate\Routing\Route->controllerMiddleware()
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Route.php:921)
at Illuminate\Routing\Route->gatherMiddleware()
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:702)
at Illuminate\Routing\Router->gatherRouteMiddleware(object(Route))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:678)
at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:662)
at Illuminate\Routing\Router->runRoute(object(Request), object(Route))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:628)
at Illuminate\Routing\Router->dispatchToRoute(object(Request))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:617)
at Illuminate\Routing\Router->dispatch(object(Request))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:165)
at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27)
at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(object(Request), object(Closure))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:63)
at Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(object(Request), object(Closure))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/vhosts/partner10.com/httpdocs/vendor/fruitcake/laravel-cors/src/HandleCors.php:37)
at Fruitcake\Cors\HandleCors->handle(object(Request), object(Closure))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/vhosts/partner10.com/httpdocs/vendor/fideloper/proxy/src/TrustProxies.php:57)
at Fideloper\Proxy\TrustProxies->handle(object(Request), object(Closure))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103)
at Illuminate\Pipeline\Pipeline->then(object(Closure))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:140)
at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request))
(/var/www/vhosts/partner10.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:109)
at Illuminate\Foundation\Http\Kernel->handle(object(Request))
(/var/www/vhosts/partner10.com/httpdocs/public/index.php:55)
|