/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php
*
* @param \Closure|string $concrete
* @return mixed
*
* @throws \Illuminate\Contracts\Container\BindingResolutionException
* @throws \Illuminate\Contracts\Container\CircularDependencyException
*/
public function build($concrete)
{
// If the concrete type is actually a Closure, we will just execute it and
// hand back the results of the functions, which allows functions to be
// used as resolvers for more fine-tuned resolution of these objects.
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
// 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.
if (! $reflector->isInstantiable()) {
return $this->notInstantiable($concrete);
}
$this->buildStack[] = $concrete;
$constructor = $reflector->getConstructor();
// If there are no constructors, that means there are no dependencies then
// we can just resolve the instances of the objects right away, without
// resolving any other types or dependencies out of these containers.
if (is_null($constructor)) {
array_pop($this->buildStack);
return new $concrete;
Arguments
"Target class [\App\Vehicles\Controllers\CarController] does not exist."
[internal]
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php
/**
* Instantiate a concrete instance of the given type.
*
* @param \Closure|string $concrete
* @return mixed
*
* @throws \Illuminate\Contracts\Container\BindingResolutionException
* @throws \Illuminate\Contracts\Container\CircularDependencyException
*/
public function build($concrete)
{
// If the concrete type is actually a Closure, we will just execute it and
// hand back the results of the functions, which allows functions to be
// used as resolvers for more fine-tuned resolution of these objects.
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
// 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.
if (! $reflector->isInstantiable()) {
return $this->notInstantiable($concrete);
}
$this->buildStack[] = $concrete;
$constructor = $reflector->getConstructor();
// If there are no constructors, that means there are no dependencies then
// we can just resolve the instances of the objects right away, without
// resolving any other types or dependencies out of these containers.
if (is_null($constructor)) {
array_pop($this->buildStack);
Arguments
"Class "\App\Vehicles\Controllers\CarController" does not exist"
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php
/**
* Instantiate a concrete instance of the given type.
*
* @param \Closure|string $concrete
* @return mixed
*
* @throws \Illuminate\Contracts\Container\BindingResolutionException
* @throws \Illuminate\Contracts\Container\CircularDependencyException
*/
public function build($concrete)
{
// If the concrete type is actually a Closure, we will just execute it and
// hand back the results of the functions, which allows functions to be
// used as resolvers for more fine-tuned resolution of these objects.
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
// 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.
if (! $reflector->isInstantiable()) {
return $this->notInstantiable($concrete);
}
$this->buildStack[] = $concrete;
$constructor = $reflector->getConstructor();
// If there are no constructors, that means there are no dependencies then
// we can just resolve the instances of the objects right away, without
// resolving any other types or dependencies out of these containers.
if (is_null($constructor)) {
array_pop($this->buildStack);
Arguments
"\App\Vehicles\Controllers\CarController"
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php
$needsContextualBuild = ! empty($parameters) || ! is_null($concrete);
// If an instance of the type is currently being managed as a singleton we'll
// just return an existing instance instead of instantiating new instances
// so the developer can keep using the same objects instance every time.
if (isset($this->instances[$abstract]) && ! $needsContextualBuild) {
return $this->instances[$abstract];
}
$this->with[] = $parameters;
if (is_null($concrete)) {
$concrete = $this->getConcrete($abstract);
}
// 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
// and apply them to the object being built. This allows for the extension
// of services, such as changing configuration or decorating the object.
foreach ($this->getExtenders($abstract) as $extender) {
$object = $extender($object, $this);
}
// If the requested type is registered as a singleton we'll want to cache off
// the instances in "memory" so we can return it later without creating an
// entirely new instance of an object on each subsequent request for it.
if ($this->isShared($abstract) && ! $needsContextualBuild) {
$this->instances[$abstract] = $object;
}
if ($raiseEvents) {
$this->fireResolvingCallbacks($abstract, $object);
Arguments
"\App\Vehicles\Controllers\CarController"
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
public function make($abstract, array $parameters = [])
{
$this->loadDeferredProviderIfNeeded($abstract = $this->getAlias($abstract));
return parent::make($abstract, $parameters);
}
/**
* Resolve the given type from the container.
*
* @param string $abstract
* @param array $parameters
* @param bool $raiseEvents
* @return mixed
*/
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.
*
* @param string $abstract
* @return void
*/
protected function loadDeferredProviderIfNeeded($abstract)
{
if ($this->isDeferredService($abstract) && ! isset($this->instances[$abstract])) {
$this->loadDeferredProvider($abstract);
}
}
/**
* Determine if the given abstract type has been bound.
*
* @param string $abstract
* @return bool
Arguments
"\App\Vehicles\Controllers\CarController"
[]
true
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php
*
* @throws \Illuminate\Contracts\Container\BindingResolutionException
*/
public function makeWith($abstract, array $parameters = [])
{
return $this->make($abstract, $parameters);
}
/**
* Resolve the given type from the container.
*
* @param string|callable $abstract
* @param array $parameters
* @return mixed
*
* @throws \Illuminate\Contracts\Container\BindingResolutionException
*/
public function make($abstract, array $parameters = [])
{
return $this->resolve($abstract, $parameters);
}
/**
* {@inheritdoc}
*
* @return mixed
*/
public function get($id)
{
try {
return $this->resolve($id);
} catch (Exception $e) {
if ($this->has($id) || $e instanceof CircularDependencyException) {
throw $e;
}
throw new EntryNotFoundException($id, $e->getCode(), $e);
}
}
Arguments
"\App\Vehicles\Controllers\CarController"
[]
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
if (! $this->isBooted()) {
$this->booting(function () use ($instance) {
$this->bootProvider($instance);
});
}
}
/**
* Resolve the given type from the container.
*
* @param string $abstract
* @param array $parameters
* @return mixed
*/
public function make($abstract, array $parameters = [])
{
$this->loadDeferredProviderIfNeeded($abstract = $this->getAlias($abstract));
return parent::make($abstract, $parameters);
}
/**
* Resolve the given type from the container.
*
* @param string $abstract
* @param array $parameters
* @param bool $raiseEvents
* @return mixed
*/
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.
*
Arguments
"\App\Vehicles\Controllers\CarController"
[]
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php
{
return app('url')->action($name, $parameters, $absolute);
}
}
if (! function_exists('app')) {
/**
* Get the available container instance.
*
* @param string|null $abstract
* @param array $parameters
* @return mixed|\Illuminate\Contracts\Foundation\Application
*/
function app($abstract = null, array $parameters = [])
{
if (is_null($abstract)) {
return Container::getInstance();
}
return Container::getInstance()->make($abstract, $parameters);
}
}
if (! function_exists('app_path')) {
/**
* Get the path to the application folder.
*
* @param string $path
* @return string
*/
function app_path($path = '')
{
return app()->path($path);
}
}
if (! function_exists('asset')) {
/**
* Generate an asset path for the application.
*
Arguments
"\App\Vehicles\Controllers\CarController"
[]
/home/gapped/public_html/vendor/portalbooster/core/src/app/Controller.php
* Stores the action name
*
* @var action
*/
protected $action;
/**
* Constructor - attaches middleware is made by request
*
* @param Request $request
*/
public function __construct(Request $request)
{
$this->requestData = $this->getRequestData($request, Location::isApi());
$this->controller = $this->getControllerName($this->requestData['controller'], $this->requestData['module']);
$this->action = $this->getActionName($this->requestData['action'], $this->requestData['method']);
if (get_class($this) === 'PortalBooster\Controller') {
$middlewares = app($this->controller)->getControllerMiddleware();
$this->applyMiddleware($middlewares);
}
}
/**
* Handles all routes
*
* @param Request $request
* @return muiltiple
*/
public function route(Request $request)
{
try {
// Check if action exist in trait if yes then we through an error
$allClasses = class_uses_recursive($this->controller);
if(!empty($allClasses)) {
foreach ($allClasses as $class) {
if(strpos($class, 'Traits') == true){
if(method_exists($class, $this->action)){
Arguments
"\App\Vehicles\Controllers\CarController"
[internal]
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php
return new $concrete;
}
$dependencies = $constructor->getParameters();
// Once we have all the constructor's parameters we can create each of the
// dependency instances and then use the reflection instances to make a
// new instance of this class, injecting the created dependencies in.
try {
$instances = $this->resolveDependencies($dependencies);
} catch (BindingResolutionException $e) {
array_pop($this->buildStack);
throw $e;
}
array_pop($this->buildStack);
return $reflector->newInstanceArgs($instances);
}
/**
* Resolve all of the dependencies from the ReflectionParameters.
*
* @param \ReflectionParameter[] $dependencies
* @return array
*
* @throws \Illuminate\Contracts\Container\BindingResolutionException
*/
protected function resolveDependencies(array $dependencies)
{
$results = [];
foreach ($dependencies as $dependency) {
// If the dependency has an override for this particular build we will use
// that instead as the value. Otherwise, we will continue with this run
// of resolutions and let reflection attempt to determine the result.
if ($this->hasParameterOverride($dependency)) {
$results[] = $this->getParameterOverride($dependency);
Arguments
array:1 [
0 => Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
]
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php
$needsContextualBuild = ! empty($parameters) || ! is_null($concrete);
// If an instance of the type is currently being managed as a singleton we'll
// just return an existing instance instead of instantiating new instances
// so the developer can keep using the same objects instance every time.
if (isset($this->instances[$abstract]) && ! $needsContextualBuild) {
return $this->instances[$abstract];
}
$this->with[] = $parameters;
if (is_null($concrete)) {
$concrete = $this->getConcrete($abstract);
}
// 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
// and apply them to the object being built. This allows for the extension
// of services, such as changing configuration or decorating the object.
foreach ($this->getExtenders($abstract) as $extender) {
$object = $extender($object, $this);
}
// If the requested type is registered as a singleton we'll want to cache off
// the instances in "memory" so we can return it later without creating an
// entirely new instance of an object on each subsequent request for it.
if ($this->isShared($abstract) && ! $needsContextualBuild) {
$this->instances[$abstract] = $object;
}
if ($raiseEvents) {
$this->fireResolvingCallbacks($abstract, $object);
Arguments
"PortalBooster\Controller"
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
public function make($abstract, array $parameters = [])
{
$this->loadDeferredProviderIfNeeded($abstract = $this->getAlias($abstract));
return parent::make($abstract, $parameters);
}
/**
* Resolve the given type from the container.
*
* @param string $abstract
* @param array $parameters
* @param bool $raiseEvents
* @return mixed
*/
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.
*
* @param string $abstract
* @return void
*/
protected function loadDeferredProviderIfNeeded($abstract)
{
if ($this->isDeferredService($abstract) && ! isset($this->instances[$abstract])) {
$this->loadDeferredProvider($abstract);
}
}
/**
* Determine if the given abstract type has been bound.
*
* @param string $abstract
* @return bool
Arguments
"PortalBooster\Controller"
[]
true
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php
*
* @throws \Illuminate\Contracts\Container\BindingResolutionException
*/
public function makeWith($abstract, array $parameters = [])
{
return $this->make($abstract, $parameters);
}
/**
* Resolve the given type from the container.
*
* @param string|callable $abstract
* @param array $parameters
* @return mixed
*
* @throws \Illuminate\Contracts\Container\BindingResolutionException
*/
public function make($abstract, array $parameters = [])
{
return $this->resolve($abstract, $parameters);
}
/**
* {@inheritdoc}
*
* @return mixed
*/
public function get($id)
{
try {
return $this->resolve($id);
} catch (Exception $e) {
if ($this->has($id) || $e instanceof CircularDependencyException) {
throw $e;
}
throw new EntryNotFoundException($id, $e->getCode(), $e);
}
}
Arguments
"PortalBooster\Controller"
[]
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
if (! $this->isBooted()) {
$this->booting(function () use ($instance) {
$this->bootProvider($instance);
});
}
}
/**
* Resolve the given type from the container.
*
* @param string $abstract
* @param array $parameters
* @return mixed
*/
public function make($abstract, array $parameters = [])
{
$this->loadDeferredProviderIfNeeded($abstract = $this->getAlias($abstract));
return parent::make($abstract, $parameters);
}
/**
* Resolve the given type from the container.
*
* @param string $abstract
* @param array $parameters
* @param bool $raiseEvents
* @return mixed
*/
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.
*
Arguments
"PortalBooster\Controller"
[]
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
*/
protected function runController()
{
return $this->controllerDispatcher()->dispatch(
$this, $this->getController(), $this->getControllerMethod()
);
}
/**
* Get the controller instance for the route.
*
* @return mixed
*/
public function getController()
{
if (! $this->controller) {
$class = $this->parseControllerCallback()[0];
$this->controller = $this->container->make(ltrim($class, '\\'));
}
return $this->controller;
}
/**
* Get the controller method used for the route.
*
* @return string
*/
protected function getControllerMethod()
{
return $this->parseControllerCallback()[1];
}
/**
* Parse the controller.
*
* @return array
*/
Arguments
"PortalBooster\Controller"
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php
public function can($ability, $models = [])
{
return empty($models)
? $this->middleware(['can:'.$ability])
: $this->middleware(['can:'.$ability.','.implode(',', Arr::wrap($models))]);
}
/**
* Get the middleware for the route's controller.
*
* @return array
*/
public function controllerMiddleware()
{
if (! $this->isControllerAction()) {
return [];
}
return $this->controllerDispatcher()->getMiddleware(
$this->getController(), $this->getControllerMethod()
);
}
/**
* Specify middleware that should be removed from the given route.
*
* @param array|string $middleware
* @return $this|array
*/
public function withoutMiddleware($middleware)
{
$this->action['excluded_middleware'] = array_merge(
(array) ($this->action['excluded_middleware'] ?? []), Arr::wrap($middleware)
);
return $this;
}
/**
* Get the middleware should be removed from the route.
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php
$this->action['missing'] = $missing;
return $this;
}
/**
* Get all middleware, including the ones from the controller.
*
* @return array
*/
public function gatherMiddleware()
{
if (! is_null($this->computedMiddleware)) {
return $this->computedMiddleware;
}
$this->computedMiddleware = [];
return $this->computedMiddleware = Router::uniqueMiddleware(array_merge(
$this->middleware(), $this->controllerMiddleware()
));
}
/**
* Get or set the middlewares attached to the route.
*
* @param array|string|null $middleware
* @return $this|array
*/
public function middleware($middleware = null)
{
if (is_null($middleware)) {
return (array) ($this->action['middleware'] ?? []);
}
if (! is_array($middleware)) {
$middleware = func_get_args();
}
foreach ($middleware as $index => $value) {
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
* @param \Illuminate\Routing\Route $route
* @return array
*/
public function gatherRouteMiddleware(Route $route)
{
$computedMiddleware = $route->gatherMiddleware();
$excluded = collect($route->excludedMiddleware())->map(function ($name) {
return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
})->flatten()->values()->all();
$middleware = collect($computedMiddleware)->map(function ($name) {
return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
})->flatten()->reject(function ($name) use ($excluded) {
if (empty($excluded)) {
return false;
}
if ($name instanceof Closure) {
return false;
}
if (in_array($name, $excluded, true)) {
return true;
}
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
$this->events->dispatch(new RouteMatched($route, $request));
return $this->prepareResponse($request,
$this->runRouteWithinStack($route, $request)
);
}
/**
* Run the given route within a Stack "onion" instance.
*
* @param \Illuminate\Routing\Route $route
* @param \Illuminate\Http\Request $request
* @return mixed
*/
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) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
* @param \Illuminate\Routing\Route $route
* @return array
*/
public function gatherRouteMiddleware(Route $route)
{
$computedMiddleware = $route->gatherMiddleware();
Arguments
Illuminate\Routing\Route {#1371}
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
return $route;
}
/**
* Return the response for the given route.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Routing\Route $route
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function runRoute(Request $request, Route $route)
{
$request->setRouteResolver(function () use ($route) {
return $route;
});
$this->events->dispatch(new RouteMatched($route, $request));
return $this->prepareResponse($request,
$this->runRouteWithinStack($route, $request)
);
}
/**
* Run the given route within a Stack "onion" instance.
*
* @param \Illuminate\Routing\Route $route
* @param \Illuminate\Http\Request $request
* @return mixed
*/
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)
Arguments
Illuminate\Routing\Route {#1371}
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
*
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Routing\Route
*/
protected function findRoute($request)
{
$this->current = $route = $this->routes->match($request);
$route->setContainer($this->container);
$this->container->instance(Route::class, $route);
return $route;
}
/**
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
Illuminate\Routing\Route {#1371}
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
* @return \Symfony\Component\HttpFoundation\Response
*/
public function respondWithRoute($name)
{
$route = tap($this->routes->getByName($name))->bind($this->currentRequest);
return $this->runRoute($this->currentRequest, $route);
}
/**
* Dispatch the request to the application.
*
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Routing\Route
*/
protected function findRoute($request)
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
* @return void
*/
public function bootstrap()
{
if (! $this->app->hasBeenBootstrapped()) {
$this->app->bootstrapWith($this->bootstrappers());
}
}
/**
* Get the route dispatcher callback.
*
* @return \Closure
*/
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Call the terminate method on any terminable middleware.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Http\Response $response
* @return void
*/
public function terminate($request, $response)
{
$this->terminateMiddleware($request, $response);
$this->app->terminate();
}
/**
* Call the terminate method on any terminable middleware.
*
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
* @return mixed
*/
public function thenReturn()
{
return $this->then(function ($passable) {
return $passable;
});
}
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
if (is_callable($pipe)) {
// If the pipe is a callable, then we will call it directly, but otherwise we
// will resolve the pipes out of the dependency container and call it with
// the appropriate method and arguments, returning the results back out.
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
/home/gapped/public_html/vendor/portalbooster/authentication/src/app/Http/Middleware/TemporaryPassword.php
use Closure;
use Carbon\Carbon;
use Illuminate\Http\Request;
use Illuminate\Validation\ValidationException;
use DB;
use User;
class TemporaryPassword
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle(Request $request, Closure $next)
{
$path = $request->path();
$response = $next($request);
$temporaryPasswordDuration = config('portal-booster-authentication.password.temporaryPasswordDuration');
if (in_array($path, ['login', 'api/login', 'oauth/token'])) {
// Parse request
$requestData = null;
$contentType = $request->headers->get('Content-Type');
if ($contentType === 'application/json') {
$requestData = json_decode($request->getContent());
}
if ($contentType === 'application/x-www-form-urlencoded') {
parse_str($request->getContent(), $requestData);
$requestData = (object) $requestData;
}
// Extract credentials
$email = isset($requestData->email) ? $requestData->email : null;
$email = isset($requestData->username) ? $requestData->username : null;
$password = isset($requestData->password) ? $requestData->password : null;
$errorMessage = 'Temporary password has expired, please use the reset password process';
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// 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);
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
Closure($passable) {#202 …4}
/home/gapped/public_html/vendor/fideloper/proxy/src/TrustProxies.php
{
$this->config = $config;
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
*
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
*
* @return mixed
*/
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
*
* @param \Illuminate\Http\Request $request
*/
protected function setTrustedProxyIpAddresses(Request $request)
{
$trustedIps = $this->proxies ?: $this->config->get('trustedproxy.proxies');
// Trust any IP address that calls us
// `**` for backwards compatibility, but is deprecated
if ($trustedIps === '*' || $trustedIps === '**') {
return $this->setTrustedProxyIpAddressesToTheCallingIp($request);
}
// Support IPs addresses separated by comma
$trustedIps = is_string($trustedIps) ? array_map('trim', explode(',', $trustedIps)) : $trustedIps;
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// 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);
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
Closure($passable) {#200 …4}
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php
namespace Illuminate\Foundation\Http\Middleware;
use Closure;
use Symfony\Component\HttpFoundation\ParameterBag;
class TransformsRequest
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$this->clean($request);
return $next($request);
}
/**
* Clean the request's data.
*
* @param \Illuminate\Http\Request $request
* @return void
*/
protected function clean($request)
{
$this->cleanParameterBag($request->query);
if ($request->isJson()) {
$this->cleanParameterBag($request->json());
} elseif ($request->request !== $request->query) {
$this->cleanParameterBag($request->request);
}
}
/**
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php
* @var array
*/
protected static $skipCallbacks = [];
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
foreach (static::$skipCallbacks as $callback) {
if ($callback($request)) {
return $next($request);
}
}
return parent::handle($request, $next);
}
/**
* Transform the given value.
*
* @param string $key
* @param mixed $value
* @return mixed
*/
protected function transform($key, $value)
{
return is_string($value) && $value === '' ? null : $value;
}
/**
* Register a callback that instructs the middleware to be skipped.
*
* @param \Closure $callback
* @return void
*/
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
Closure($passable) {#199 …4}
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// 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);
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
Closure($passable) {#199 …4}
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php
namespace Illuminate\Foundation\Http\Middleware;
use Closure;
use Symfony\Component\HttpFoundation\ParameterBag;
class TransformsRequest
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$this->clean($request);
return $next($request);
}
/**
* Clean the request's data.
*
* @param \Illuminate\Http\Request $request
* @return void
*/
protected function clean($request)
{
$this->cleanParameterBag($request->query);
if ($request->isJson()) {
$this->cleanParameterBag($request->json());
} elseif ($request->request !== $request->query) {
$this->cleanParameterBag($request->request);
}
}
/**
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php
protected $except = [
//
];
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
foreach (static::$skipCallbacks as $callback) {
if ($callback($request)) {
return $next($request);
}
}
return parent::handle($request, $next);
}
/**
* Transform the given value.
*
* @param string $key
* @param mixed $value
* @return mixed
*/
protected function transform($key, $value)
{
if (in_array($key, $this->except, true)) {
return $value;
}
return is_string($value) ? trim($value) : $value;
}
/**
* Register a callback that instructs the middleware to be skipped.
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
Closure($passable) {#198 …4}
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// 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);
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
Closure($passable) {#198 …4}
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php
class ValidatePostSize
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*
* @throws \Illuminate\Http\Exceptions\PostTooLargeException
*/
public function handle($request, Closure $next)
{
$max = $this->getPostMaxSize();
if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) {
throw new PostTooLargeException;
}
return $next($request);
}
/**
* Determine the server 'post_max_size' as bytes.
*
* @return int
*/
protected function getPostMaxSize()
{
if (is_numeric($postMaxSize = ini_get('post_max_size'))) {
return (int) $postMaxSize;
}
$metric = strtoupper(substr($postMaxSize, -1));
$postMaxSize = (int) $postMaxSize;
switch ($metric) {
case 'K':
return $postMaxSize * 1024;
case 'M':
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// 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);
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
Closure($passable) {#197 …4}
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php
}
}
if (isset($data['template'])) {
return response(
$data['template'],
$data['status'] ?? 503,
$this->getHeaders($data)
);
}
throw new HttpException(
$data['status'] ?? 503,
'Service Unavailable',
null,
$this->getHeaders($data)
);
}
return $next($request);
}
/**
* Determine if the incoming request has a maintenance mode bypass cookie.
*
* @param \Illuminate\Http\Request $request
* @param array $data
* @return bool
*/
protected function hasValidBypassCookie($request, array $data)
{
return isset($data['secret']) &&
$request->cookie('laravel_maintenance') &&
MaintenanceModeBypassCookie::isValid(
$request->cookie('laravel_maintenance'),
$data['secret']
);
}
/**
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// 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);
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
Closure($passable) {#1379 …4}
/home/gapped/public_html/vendor/fruitcake/laravel-cors/src/HandleCors.php
protected $container;
public function __construct(CorsService $cors, Container $container)
{
$this->cors = $cors;
$this->container = $container;
}
/**
* Handle an incoming request. Based on Asm89\Stack\Cors by asm89
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return Response
*/
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);
$this->cors->varyHeader($response, 'Access-Control-Request-Method');
return $response;
}
// Handle the request
$response = $next($request);
if ($request->getMethod() === 'OPTIONS') {
$this->cors->varyHeader($response, 'Access-Control-Request-Method');
}
return $this->addHeaders($request, $response);
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// 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);
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
Closure($passable) {#1378 …4}
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
public function via($method)
{
$this->method = $method;
return $this;
}
/**
* Run the pipeline with a final destination callback.
*
* @param \Closure $destination
* @return mixed
*/
public function then(Closure $destination)
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
* @return mixed
*/
public function thenReturn()
{
return $this->then(function ($passable) {
return $passable;
});
}
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
}
/**
* Send the given request through the middleware / router.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
protected function sendRequestThroughRouter($request)
{
$this->app->instance('request', $request);
Facade::clearResolvedInstance('request');
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
* @return void
*/
public function bootstrap()
{
if (! $this->app->hasBeenBootstrapped()) {
$this->app->bootstrapWith($this->bootstrappers());
}
}
/**
* Get the route dispatcher callback.
*
* @return \Closure
*/
protected function dispatchToRouter()
Arguments
Closure($request) {#1340 …4}
/home/gapped/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
public function __construct(Application $app, Router $router)
{
$this->app = $app;
$this->router = $router;
$this->syncMiddlewareToRouter();
}
/**
* Handle an incoming HTTP request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
$this->app['events']->dispatch(
new RequestHandled($request, $response)
);
return $response;
}
/**
* Send the given request through the middleware / router.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
protected function sendRequestThroughRouter($request)
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}
/home/gapped/public_html/public/index.php
*/
$app = require_once __DIR__.'/../bootstrap/app.php';
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
Arguments
Illuminate\Http\Request {#44
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#46}
+request: Symfony\Component\HttpFoundation\InputBag {#52}
+query: Symfony\Component\HttpFoundation\InputBag {#52}
+server: Symfony\Component\HttpFoundation\ServerBag {#48}
+files: Symfony\Component\HttpFoundation\FileBag {#49}
+cookies: Symfony\Component\HttpFoundation\InputBag {#47}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#50}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#requestUri: "/vehicles/car/fg19cxx/thumbs/1100_481886.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
-isIisRewrite: false
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1373 …4}
#routeResolver: Closure() {#1383 …4}
basePath: ""
format: "html"
}