/home1/infopeenya/public_html/vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php
return (new Route('OPTIONS', $request->path(), function () use ($methods) {
return new Response('', 200, ['Allow' => implode(',', $methods)]);
}))->bind($request);
}
$this->methodNotAllowed($methods, $request->method());
}
/**
* Throw a method not allowed HTTP exception.
*
* @param array $others
* @param string $method
* @return void
*
* @throws \Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException
*/
protected function methodNotAllowed(array $others, $method)
{
throw new MethodNotAllowedHttpException(
$others,
sprintf(
'The %s method is not supported for this route. Supported methods: %s.',
$method,
implode(', ', $others)
)
);
}
/**
* Compile the routes for caching.
*
* @return array
*/
public function compile()
{
$compiled = $this->dumper()->getCompiledRoutes();
$attributes = [];
Arguments
"The GET method is not supported for this route. Supported methods: POST."
/home1/infopeenya/public_html/vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php
}
/**
* Get a route (if necessary) that responds when other available methods are present.
*
* @param \Illuminate\Http\Request $request
* @param string[] $methods
* @return \Illuminate\Routing\Route
*
* @throws \Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException
*/
protected function getRouteForMethods($request, array $methods)
{
if ($request->method() === 'OPTIONS') {
return (new Route('OPTIONS', $request->path(), function () use ($methods) {
return new Response('', 200, ['Allow' => implode(',', $methods)]);
}))->bind($request);
}
$this->methodNotAllowed($methods, $request->method());
}
/**
* Throw a method not allowed HTTP exception.
*
* @param array $others
* @param string $method
* @return void
*
* @throws \Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException
*/
protected function methodNotAllowed(array $others, $method)
{
throw new MethodNotAllowedHttpException(
$others,
sprintf(
'The %s method is not supported for this route. Supported methods: %s.',
$method,
implode(', ', $others)
)
Arguments
array:1 [
0 => "POST"
]
"GET"
/home1/infopeenya/public_html/vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Routing\Route|null $route
* @return \Illuminate\Routing\Route
*
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
*/
protected function handleMatchedRoute(Request $request, $route)
{
if (! is_null($route)) {
return $route->bind($request);
}
// If no route was found we will now check if a matching route is specified by
// another HTTP verb. If it is we will need to throw a MethodNotAllowed and
// inform the user agent of which HTTP verb it should use for this route.
$others = $this->checkForAlternateVerbs($request);
if (count($others) > 0) {
return $this->getRouteForMethods($request, $others);
}
throw new NotFoundHttpException;
}
/**
* Determine if any routes match on another HTTP verb.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
protected function checkForAlternateVerbs($request)
{
$methods = array_diff(Router::$verbs, [$request->getMethod()]);
// Here we will spin through all verbs except for the current request verb and
// check to see if any routes respond to them. If they do, we will return a
// proper error response with the correct headers on the response string.
return array_values(array_filter(
$methods,
Arguments
Illuminate\Http\Request {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
array:1 [
0 => "POST"
]
/home1/infopeenya/public_html/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php
/**
* Find the first route matching a given request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Routing\Route
*
* @throws \Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
*/
public function match(Request $request)
{
$routes = $this->get($request->getMethod());
// First, we will see if we can find a matching route for this current request
// method. If we can, great, we can just return it so that it can be called
// by the consumer. Otherwise we will check for routes with another verb.
$route = $this->matchAgainstRoutes($routes, $request);
return $this->handleMatchedRoute($request, $route);
}
/**
* Get routes from the collection by method.
*
* @param string|null $method
* @return \Illuminate\Routing\Route[]
*/
public function get($method = null)
{
return is_null($method) ? $this->getRoutes() : Arr::get($this->routes, $method, []);
}
/**
* Determine if the route collection contains a given named route.
*
* @param string $name
* @return bool
*/
public function hasNamedRoute($name)
Arguments
Illuminate\Http\Request {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
null
/home1/infopeenya/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
/**
* 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;
}
/**
* 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;
});
Arguments
Illuminate\Http\Request {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
/home1/infopeenya/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 {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
/home1/infopeenya/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 {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
/home1/infopeenya/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 {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
/home1/infopeenya/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 {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
/home1/infopeenya/public_html/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php
* @param LaravelDebugbar $debugbar
*/
public function __construct(Container $container, LaravelDebugbar $debugbar)
{
$this->container = $container;
$this->debugbar = $debugbar;
$this->except = config('debugbar.except') ?: [];
}
/**
* Handle an incoming request.
*
* @param Request $request
* @param Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if (!$this->debugbar->isEnabled() || $this->inExceptArray($request)) {
return $next($request);
}
$this->debugbar->boot();
try {
/** @var \Illuminate\Http\Response $response */
$response = $next($request);
} catch (Exception $e) {
$response = $this->handleException($request, $e);
} catch (Error $error) {
$e = new FatalThrowableError($error);
$response = $this->handleException($request, $e);
}
// Modify the response to add the Debugbar
$this->debugbar->modifyResponse($request, $response);
return $response;
}
Arguments
Illuminate\Http\Request {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
/home1/infopeenya/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 {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
Closure($passable) {#2408 …4}
/home1/infopeenya/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 {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
/home1/infopeenya/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 {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
Closure($passable) {#60 …4}
/home1/infopeenya/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 {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
/home1/infopeenya/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 {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
Closure($passable) {#58 …4}
/home1/infopeenya/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 {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
/home1/infopeenya/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 {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
Closure($passable) {#2410 …4}
/home1/infopeenya/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 {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
Closure($passable) {#2410 …4}
/home1/infopeenya/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 {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
/home1/infopeenya/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 {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
Closure($passable) {#2411 …4}
/home1/infopeenya/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 {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
Closure($passable) {#2411 …4}
/home1/infopeenya/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 {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
/home1/infopeenya/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 {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
Closure($passable) {#2412 …4}
/home1/infopeenya/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 {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
/home1/infopeenya/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 {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
Closure($passable) {#2413 …4}
/home1/infopeenya/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 {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
/home1/infopeenya/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) {#466 …4}
/home1/infopeenya/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 {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}
/home1/infopeenya/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 {#49
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2420 …4}
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#51}
+request: Symfony\Component\HttpFoundation\InputBag {#57}
+query: Symfony\Component\HttpFoundation\InputBag {#57}
+server: Symfony\Component\HttpFoundation\ServerBag {#53}
+files: Symfony\Component\HttpFoundation\FileBag {#54}
+cookies: Symfony\Component\HttpFoundation\InputBag {#52}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#55}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/directory/wishlist/9VKWgyXK18"
#requestUri: "/directory/wishlist/9VKWgyXK18"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
basePath: ""
format: "html"
}