}
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 ($excluded) {
if (empty($excluded)) {
return false;
}
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 ($excluded) {
if (empty($excluded)) {
return false;
}
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\Web\ProductResellerController] does not exist. at /var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php:832 at Illuminate\Container\Container->build('App\\Http\\Controllers\\Web\\ProductResellerController') (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php:712) at Illuminate\Container\Container->resolve('App\\Http\\Controllers\\Web\\ProductResellerController', array(), true) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:841) at Illuminate\Foundation\Application->resolve('App\\Http\\Controllers\\Web\\ProductResellerController', array()) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php:651) at Illuminate\Container\Container->make('App\\Http\\Controllers\\Web\\ProductResellerController', array()) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:826) at Illuminate\Foundation\Application->make('App\\Http\\Controllers\\Web\\ProductResellerController') (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Route.php:268) at Illuminate\Routing\Route->getController() (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Route.php:1019) at Illuminate\Routing\Route->controllerMiddleware() (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Route.php:980) at Illuminate\Routing\Route->gatherMiddleware() (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:710) at Illuminate\Routing\Router->gatherRouteMiddleware(object(Route)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:686) at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:670) at Illuminate\Routing\Router->runRoute(object(Request), object(Route)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:636) at Illuminate\Routing\Router->dispatchToRoute(object(Request)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:625) at Illuminate\Routing\Router->dispatch(object(Request)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:166) at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/vhosts/jetstax.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/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/vhosts/jetstax.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/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/vhosts/jetstax.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/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:86) at Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(object(Request), object(Closure)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/fruitcake/laravel-cors/src/HandleCors.php:37) at Fruitcake\Cors\HandleCors->handle(object(Request), object(Closure)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/fideloper/proxy/src/TrustProxies.php:57) at Fideloper\Proxy\TrustProxies->handle(object(Request), object(Closure)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:141) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:110) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (/var/www/vhosts/jetstax.com/httpdocs/public/index.php:52) |
[1/2] ReflectionException |
---|
ReflectionException: Class App\Http\Controllers\Web\ProductResellerController does not exist at /var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php:830 at ReflectionClass->__construct('App\\Http\\Controllers\\Web\\ProductResellerController') (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php:830) at Illuminate\Container\Container->build('App\\Http\\Controllers\\Web\\ProductResellerController') (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php:712) at Illuminate\Container\Container->resolve('App\\Http\\Controllers\\Web\\ProductResellerController', array(), true) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:841) at Illuminate\Foundation\Application->resolve('App\\Http\\Controllers\\Web\\ProductResellerController', array()) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php:651) at Illuminate\Container\Container->make('App\\Http\\Controllers\\Web\\ProductResellerController', array()) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:826) at Illuminate\Foundation\Application->make('App\\Http\\Controllers\\Web\\ProductResellerController') (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Route.php:268) at Illuminate\Routing\Route->getController() (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Route.php:1019) at Illuminate\Routing\Route->controllerMiddleware() (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Route.php:980) at Illuminate\Routing\Route->gatherMiddleware() (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:710) at Illuminate\Routing\Router->gatherRouteMiddleware(object(Route)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:686) at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:670) at Illuminate\Routing\Router->runRoute(object(Request), object(Route)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:636) at Illuminate\Routing\Router->dispatchToRoute(object(Request)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:625) at Illuminate\Routing\Router->dispatch(object(Request)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:166) at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/vhosts/jetstax.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/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/vhosts/jetstax.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/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/vhosts/jetstax.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/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:86) at Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(object(Request), object(Closure)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/fruitcake/laravel-cors/src/HandleCors.php:37) at Fruitcake\Cors\HandleCors->handle(object(Request), object(Closure)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/fideloper/proxy/src/TrustProxies.php:57) at Fideloper\Proxy\TrustProxies->handle(object(Request), object(Closure)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:141) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (/var/www/vhosts/jetstax.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:110) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (/var/www/vhosts/jetstax.com/httpdocs/public/index.php:52) |