/home/computo/www2.computo.com.pe/platform/plugins/ecommerce/src/Cart/CartItem.php
*
* @var int|float
*/
protected $taxRate = 0;
/**
* CartItem constructor.
*
* @param int|string $id
* @param string $name
* @param float $price
* @param array $options
*/
public function __construct($id, $name, $price, array $options = [])
{
if (empty($id)) {
throw new InvalidArgumentException('Please supply a valid identifier.');
}
if (empty($name)) {
throw new InvalidArgumentException('Please supply a valid name.');
}
if (strlen($price) < 0 || !is_numeric($price)) {
throw new InvalidArgumentException('Please supply a valid price.');
}
$this->id = $id;
$this->name = $name;
$this->price = floatval($price);
$this->options = new CartItemOptions($options);
$this->rowId = $this->generateRowId($id, $options);
$this->created_at = Carbon::now();
$this->updated_at = Carbon::now();
}
/**
* Returns the formatted price without TAX.
*
* @return string
*/
public function price()
Arguments
"Please supply a valid name."
/home/computo/www2.computo.com.pe/platform/plugins/ecommerce/src/Cart/CartItem.php
*/
public static function fromArray(array $attributes)
{
$options = Arr::get($attributes, 'options', []);
return new self($attributes['id'], $attributes['name'], $attributes['price'], $options);
}
/**
* Create a new instance from the given attributes.
*
* @param int|string $id
* @param string $name
* @param float $price
* @param array $options
* @return CartItem
*/
public static function fromAttributes($id, $name, $price, array $options = [])
{
return new self($id, $name, $price, $options);
}
/**
* Generate a unique id for the cart item.
*
* @param string $id
* @param array $options
* @return string
*/
protected function generateRowId($id, array $options)
{
ksort($options);
return md5($id . serialize($options));
}
/**
* Get the instance as an array.
*
* @return array
Arguments
/home/computo/www2.computo.com.pe/platform/plugins/ecommerce/src/Cart/Cart.php
}
$price = $price + $_value['affect_price'];
}
} else {
if ($_value['affect_type'] == 1) {
$_value['affect_price'] = ($basePrice * $_value['affect_price']) / 100;
}
$price = $price + $value['affect_price'];
}
}
}
if ($id instanceof Buyable) {
$cartItem = CartItem::fromBuyable($id, $qty ?: []);
$cartItem->setQuantity($name ?: 1);
$cartItem->associate($id);
} elseif (is_array($id)) {
$cartItem = CartItem::fromArray($id);
$cartItem->setQuantity($id['qty']);
} else {
$cartItem = CartItem::fromAttributes($id, $name, $price, $options);
$cartItem->setQuantity($qty);
}
$cartItem->setTaxRate($options['taxRate'] ?? 0);
return $cartItem;
}
/**
* Get the carts content, if there is no cart content set yet, return a new empty Collection
*
* @return Collection
*/
protected function getContent()
{
return $this->session->has($this->instance)
? $this->session->get($this->instance)
: new Collection();
}
Arguments
/home/computo/www2.computo.com.pe/platform/plugins/ecommerce/src/Cart/Cart.php
/**
* Add an item to the cart.
*
* @param mixed $id
* @param mixed $name
* @param int|float $qty
* @param float $price
* @param array $options
* @return array|CartItem
*/
public function add($id, $name = null, $qty = null, $price = null, array $options = [])
{
if ($this->isMulti($id)) {
return array_map(function ($item) {
return $this->add($item);
}, $id);
}
$cartItem = $this->createCartItem($id, $name, $qty, $price, $options);
$content = $this->getContent();
if ($content->has($cartItem->rowId)) {
$cartItem->qty += $content->get($cartItem->rowId)->qty;
}
$content->put($cartItem->rowId, $cartItem);
$this->events->dispatch('cart.added', $cartItem);
$this->putToSession($content);
return $cartItem;
}
/**
* Check if the item is a multidimensional array or an array of Buyables.
*
* @param mixed $item
Arguments
/home/computo/www2.computo.com.pe/platform/plugins/ecommerce/src/Supports/EcommerceHelper.php
*/
public function handleCustomerRecentlyViewedProduct(Product $product): self
{
if (!$this->isEnabledCustomerRecentlyViewedProducts()) {
return $this;
}
$max = $this->maxCustomerRecentlyViewedProducts();
if (!auth('customer')->check()) {
$instance = Cart::instance('recently_viewed');
$first = $instance->search(function ($cartItem) use ($product) {
return $cartItem->id == $product->id;
})->first();
if ($first) {
$instance->update($first->rowId, 1);
} else {
$instance->add($product->id, $product->name, 1, $product->front_sale_price)->associate(Product::class);
}
if ($max) {
$content = collect($instance->content());
if ($content->count() > $max) {
$content
->sortBy([['updated_at', 'desc']])
->skip($max)
->each(function ($cartItem) use ($instance) {
$instance->remove($cartItem->rowId);
});
}
}
} else {
/**
* @var Customer $customer
*/
$customer = auth('customer')->user();
$viewedProducts = $customer->viewedProducts;
$exists = $viewedProducts->firstWhere('id', $product->id);
Arguments
/home/computo/www2.computo.com.pe/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php
}
/**
* Handle dynamic, static calls to the object.
*
* @param string $method
* @param array $args
* @return mixed
*
* @throws \RuntimeException
*/
public static function __callStatic($method, $args)
{
$instance = static::getFacadeRoot();
if (! $instance) {
throw new RuntimeException('A facade root has not been set.');
}
return $instance->$method(...$args);
}
}
Arguments
Botble\Ecommerce\Models\Product {#3072}
/home/computo/www2.computo.com.pe/platform/plugins/ecommerce/src/Http/Controllers/Fronts/PublicProductController.php
}
if ($product->slugable->key !== $slug->key) {
return redirect()->to($product->url);
}
SeoHelper::setTitle($product->name)->setDescription($product->description);
$meta = new SeoOpenGraph();
if ($product->image) {
$meta->setImage(RvMedia::getImageUrl($product->image));
}
$meta->setDescription($product->description);
$meta->setUrl($product->url);
$meta->setTitle($product->name);
SeoHelper::setSeoOpenGraph($meta);
Helper::handleViewCount($product, 'viewed_product');
EcommerceHelper::handleCustomerRecentlyViewedProduct($product);
Theme::breadcrumb()
->add(__('Home'), route('public.index'))
->add(__('Products'), route('public.products'));
$category = $product->categories->sortByDesc('id')->first();
if ($category) {
if ($category->parents->count()) {
foreach ($category->parents->reverse() as $parentCategory) {
Theme::breadcrumb()->add($parentCategory->name, $parentCategory->url);
}
}
Theme::breadcrumb()->add($category->name, $category->url);
}
Theme::breadcrumb()->add($product->name, $product->url);
admin_bar()
Arguments
"handleCustomerRecentlyViewedProduct"
array:1 [
0 => Botble\Ecommerce\Models\Product {#3072}
]
/home/computo/www2.computo.com.pe/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php
/**
* Dispatch a request to a given controller and method.
*
* @param \Illuminate\Routing\Route $route
* @param mixed $controller
* @param string $method
* @return mixed
*/
public function dispatch(Route $route, $controller, $method)
{
$parameters = $this->resolveClassMethodDependencies(
$route->parametersWithoutNulls(), $controller, $method
);
if (method_exists($controller, 'callAction')) {
return $controller->callAction($method, $parameters);
}
return $controller->{$method}(...array_values($parameters));
}
/**
* Get the middleware for the controller instance.
*
* @param \Illuminate\Routing\Controller $controller
* @param string $method
* @return array
*/
public function getMiddleware($controller, $method)
{
if (! method_exists($controller, 'getMiddleware')) {
return [];
}
return collect($controller->getMiddleware())->reject(function ($data) use ($method) {
return static::methodExcludedByOptions($method, $data['options']);
})->pluck('middleware')->all();
}
Arguments
Botble\Slug\Models\Slug {#3046}
Illuminate\Http\Request {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/vendor/laravel/framework/src/Illuminate/Routing/Route.php
* Determine if the route action is a serialized Closure.
*
* @return bool
*/
protected function isSerializedClosure()
{
return RouteAction::containsSerializedClosure($this->action);
}
/**
* Run the route action and return the response.
*
* @return mixed
*
* @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;
}
/**
Arguments
Illuminate\Routing\Route {#2234}
Botble\Ecommerce\Http\Controllers\Fronts\PublicProductController {#3014}
"getProduct"
/home/computo/www2.computo.com.pe/vendor/laravel/framework/src/Illuminate/Routing/Route.php
*
* @throws \UnexpectedValueException
*/
protected function parseAction($action)
{
return RouteAction::parse($this->uri, $action);
}
/**
* Run the route action and return the response.
*
* @return mixed
*/
public function run()
{
$this->container = $this->container ?: new Container;
try {
if ($this->isControllerAction()) {
return $this->runController();
}
return $this->runCallable();
} catch (HttpResponseException $e) {
return $e->getResponse();
}
}
/**
* Checks whether the route's action is a controller.
*
* @return bool
*/
protected function isControllerAction()
{
return is_string($this->action['uses']) && ! $this->isSerializedClosure();
}
/**
* Run the route action and return the response.
/home/computo/www2.computo.com.pe/vendor/laravel/framework/src/Illuminate/Routing/Router.php
/**
* 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();
$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);
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/platform/plugins/language/src/Http/Middleware/LocalizationRedirectFilter.php
$redirection = Language::getNonLocalizedURL();
}
} elseif ($currentLocale !== $defaultLocale || !$hideDefaultLocale) {
// If the current url does not contain any locale
// The system redirect the user to the very same url "localized"
// we use the current locale to redirect him
if (!Language::getActiveLanguage(['lang_id'])->isEmpty()) {
$redirection = Language::getLocalizedURL(session('language'), $request->fullUrl(), [], false);
}
}
if ($redirection) {
// Save any flashed data for redirect
app('session')->reflash();
return new RedirectResponse($redirection, 302, ['Vary' => 'Accept-Language']);
}
}
return $next($request);
}
}
Arguments
Illuminate\Http\Request {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
Closure($passable) {#2975 …4}
/home/computo/www2.computo.com.pe/platform/plugins/language/src/Http/Middleware/LocaleSessionRedirect.php
$negotiator = new LanguageNegotiator(
Language::getDefaultLocale(),
Language::getSupportedLocales(),
$request
);
$locale = $negotiator->negotiateLanguage();
}
session(['language' => Language::getDefaultLocale()]);
app()->setLocale(session('language'));
if ($locale && Language::checkLocaleInSupportedLocales($locale) && !(Language::getDefaultLocale() === $locale && Language::hideDefaultLocaleInURL())) {
app('session')->reflash();
$redirection = Language::getLocalizedURL($locale, null, [], false);
return new RedirectResponse($redirection, 302, ['Vary' => 'Accept-Language']);
}
return $next($request);
}
}
Arguments
Illuminate\Http\Request {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
Closure($passable) {#2968 …4}
/home/computo/www2.computo.com.pe/vendor/botble/platform/base/src/Http/Middleware/CoreMiddleware.php
<?php
namespace Botble\Base\Http\Middleware;
use Closure;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
class CoreMiddleware
{
/**
* @param Request $request
* @param Closure $next
* @return RedirectResponse
*/
public function handle($request, Closure $next)
{
return $next($request);
}
}
Arguments
Illuminate\Http\Request {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
Closure($passable) {#2969 …4}
/home/computo/www2.computo.com.pe/vendor/botble/platform/base/src/Http/Middleware/HttpsProtocolMiddleware.php
namespace Botble\Base\Http\Middleware;
use Closure;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
class HttpsProtocolMiddleware
{
/**
* @param Request $request
* @param Closure $next
* @return RedirectResponse
*/
public function handle($request, Closure $next)
{
if (!$request->secure() && config('core.base.general.enable_https_support', false)) {
return redirect()->secure($request->getRequestUri());
}
return $next($request);
}
}
Arguments
Illuminate\Http\Request {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
Closure($passable) {#2803 …4}
/home/computo/www2.computo.com.pe/vendor/botble/platform/base/src/Http/Middleware/LocaleMiddleware.php
* @param Application $application
*/
public function __construct(Application $application)
{
$this->app = $application;
}
/**
* Handle an incoming request.
*
* @param Request $request
* @param Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$this->app->setLocale(config('app.locale'));
if (!$request->session()->has('site-locale')) {
return $next($request);
}
$sessionLocale = $request->session()->get('site-locale');
if (array_key_exists($sessionLocale, Language::getAvailableLocales()) && is_in_admin()) {
$this->app->setLocale($sessionLocale);
$request->setLocale($sessionLocale);
}
return $next($request);
}
}
Arguments
Illuminate\Http\Request {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
Closure($passable) {#2967 …4}
/home/computo/www2.computo.com.pe/vendor/botble/installer/src/Http/Middleware/RedirectIfNotInstalledMiddleware.php
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Route;
class RedirectIfNotInstalledMiddleware extends InstallerMiddleware
{
/**
* Handle an incoming request.
*
* @param Request $request
* @param Closure $next
* @return RedirectResponse|mixed
*/
public function handle($request, Closure $next)
{
if (!$this->alreadyInstalled() && Route::current()->getPrefix() !== 'install') {
return redirect()->route('installers.welcome');
}
return $next($request);
}
}
Arguments
Illuminate\Http\Request {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
Closure($passable) {#3015 …4}
/home/computo/www2.computo.com.pe/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
try {
$this->router->substituteBindings($route = $request->route());
$this->router->substituteImplicitBindings($route);
} catch (ModelNotFoundException $exception) {
if ($route->getMissing()) {
return $route->getMissing()($request, $exception);
}
throw $exception;
}
return $next($request);
}
}
Arguments
Illuminate\Http\Request {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
Closure($passable) {#3016 …4}
/home/computo/www2.computo.com.pe/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*
* @throws \Illuminate\Session\TokenMismatchException
*/
public function handle($request, Closure $next)
{
if (
$this->isReading($request) ||
$this->runningUnitTests() ||
$this->inExceptArray($request) ||
$this->tokensMatch($request)
) {
return tap($next($request), function ($response) use ($request) {
if ($this->shouldAddXsrfTokenCookie()) {
$this->addCookieToResponse($request, $response);
}
});
}
throw new TokenMismatchException('CSRF token mismatch.');
}
/**
* Determine if the HTTP request uses a ‘read’ verb.
*
* @param \Illuminate\Http\Request $request
* @return bool
*/
protected function isReading($request)
{
return in_array($request->method(), ['HEAD', 'GET', 'OPTIONS']);
}
Arguments
Illuminate\Http\Request {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
Closure($passable) {#3017 …4}
/home/computo/www2.computo.com.pe/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
// If the current session has an "errors" variable bound to it, we will share
// its value with all view instances so the views can easily access errors
// without having to bind. An empty bag is set when there aren't errors.
$this->view->share(
'errors', $request->session()->get('errors') ?: new ViewErrorBag
);
// Putting the errors in the view for every view allows the developer to just
// assume that some errors are always available, which is convenient since
// they don't have to continually run checks for the presence of errors.
return $next($request);
}
}
Arguments
Illuminate\Http\Request {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
Closure($passable) {#3018 …4}
/home/computo/www2.computo.com.pe/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php
/**
* Handle the given request within session state.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Contracts\Session\Session $session
* @param \Closure $next
* @return mixed
*/
protected function handleStatefulRequest(Request $request, $session, Closure $next)
{
// If a session driver has been configured, we will need to start the session here
// so that the data is ready for an application. Note that the Laravel sessions
// do not make use of PHP "native" sessions in any way since they are crappy.
$request->setLaravelSession(
$this->startSession($request, $session)
);
$this->collectGarbage($session);
$response = $next($request);
$this->storeCurrentUrl($request, $session);
$this->addCookieToResponse($response, $session);
// Again, if the session has been configured we will need to close out the session
// so that the attributes may be persisted to some storage medium. We will also
// add the session identifier cookie to the application response headers now.
$this->saveSession($request);
return $response;
}
/**
* Start the session for the given request.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Contracts\Session\Session $session
* @return \Illuminate\Contracts\Session\Session
*/
Arguments
Illuminate\Http\Request {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if (! $this->sessionConfigured()) {
return $next($request);
}
$session = $this->getSession($request);
if ($this->manager->shouldBlock() ||
($request->route() instanceof Route && $request->route()->locksFor())) {
return $this->handleRequestWhileBlocking($request, $session, $next);
}
return $this->handleStatefulRequest($request, $session, $next);
}
/**
* Handle the given request within session state.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Contracts\Session\Session $session
* @param \Closure $next
* @return mixed
*/
protected function handleRequestWhileBlocking(Request $request, $session, Closure $next)
{
if (! $request->route() instanceof Route) {
return;
}
$lockFor = $request->route() && $request->route()->locksFor()
? $request->route()->locksFor()
: 10;
Arguments
Illuminate\Http\Request {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
Illuminate\Session\Store {#772}
Closure($passable) {#3019 …4}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
Closure($passable) {#3019 …4}
/home/computo/www2.computo.com.pe/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php
* Create a new CookieQueue instance.
*
* @param \Illuminate\Contracts\Cookie\QueueingFactory $cookies
* @return void
*/
public function __construct(CookieJar $cookies)
{
$this->cookies = $cookies;
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
foreach ($this->cookies->getQueuedCookies() as $cookie) {
$response->headers->setCookie($cookie);
}
return $response;
}
}
Arguments
Illuminate\Http\Request {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
Closure($passable) {#3020 …4}
/home/computo/www2.computo.com.pe/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php
* Disable encryption for the given cookie name(s).
*
* @param string|array $name
* @return void
*/
public function disableFor($name)
{
$this->except = array_merge($this->except, (array) $name);
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return \Symfony\Component\HttpFoundation\Response
*/
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($request)));
}
/**
* Decrypt the cookies on the request.
*
* @param \Symfony\Component\HttpFoundation\Request $request
* @return \Symfony\Component\HttpFoundation\Request
*/
protected function decrypt(Request $request)
{
foreach ($request->cookies as $key => $cookie) {
if ($this->isDisabled($key) || is_array($cookie)) {
continue;
}
try {
$value = $this->decryptCookie($key, $cookie);
$hasValidPrefix = strpos($value, CookieValuePrefix::create($key, $this->encrypter->getKey())) === 0;
Arguments
Illuminate\Http\Request {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
Closure($passable) {#3021 …4}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/vendor/laravel/framework/src/Illuminate/Routing/Router.php
*
* @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();
$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)) {
Arguments
Closure($request) {#2971 …4}
/home/computo/www2.computo.com.pe/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 {#2234}
Illuminate\Http\Request {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
Illuminate\Routing\Route {#2234}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/vendor/botble/platform/js-validation/src/RemoteValidationMiddleware.php
{
$this->factory = $validator;
$this->field = $config->get('core.js-validation.js-validation.remote_validation_field');
$this->escape = (bool)$config->get('core.js-validation.js-validation.escape', false);
}
/**
* Handle an incoming request.
*
* @param Request $request
* @param Closure $next
* @return mixed
*/
public function handle(Request $request, Closure $next)
{
if ($request->has($this->field)) {
$this->wrapValidator();
}
return $next($request);
}
/**
* Wraps Validator resolver with RemoteValidator resolver.
*
* @return void
*/
protected function wrapValidator()
{
$resolver = new Resolver($this->factory, $this->escape);
$this->factory->resolver($resolver->resolver($this->field));
$this->factory->extend(RemoteValidator::EXTENSION_NAME, $resolver->validatorClosure());
}
}
Arguments
Illuminate\Http\Request {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
Closure($passable) {#2794 …4}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
Closure($passable) {#2795 …4}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
Closure($passable) {#2795 …4}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
Closure($passable) {#2796 …4}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
Closure($passable) {#2796 …4}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
Closure($passable) {#2797 …4}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
Closure($passable) {#2798 …4}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
Closure($passable) {#2799 …4}
/home/computo/www2.computo.com.pe/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php
* @var int
*/
protected $headers = Request::HEADER_X_FORWARDED_FOR | Request::HEADER_X_FORWARDED_HOST | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO | Request::HEADER_X_FORWARDED_AWS_ELB;
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
*/
public function handle(Request $request, Closure $next)
{
$request::setTrustedProxies([], $this->getTrustedHeaderNames());
$this->setTrustedProxyIpAddresses($request);
return $next($request);
}
/**
* Sets the trusted proxies on the request.
*
* @param \Illuminate\Http\Request $request
* @return void
*/
protected function setTrustedProxyIpAddresses(Request $request)
{
$trustedIps = $this->proxies() ?: config('trustedproxy.proxies');
if ($trustedIps === '*' || $trustedIps === '**') {
return $this->setTrustedProxyIpAddressesToTheCallingIp($request);
}
$trustedIps = is_string($trustedIps)
? array_map('trim', explode(',', $trustedIps))
: $trustedIps;
Arguments
Illuminate\Http\Request {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
Closure($passable) {#2800 …4}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/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) {#2792 …4}
/home/computo/www2.computo.com.pe/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 {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}
/home/computo/www2.computo.com.pe/public/index.php
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request using
| the application's HTTP kernel. Then, we will send the response back
| to this client's browser, allowing them to enjoy our application.
|
*/
$app = require_once __DIR__.'/../bootstrap/app.php';
$app->bind('path.public', function() {
return __DIR__;
});
$kernel = $app->make(Kernel::class);
$response = tap($kernel->handle(
$request = Request::capture()
))->send();
$kernel->terminate($request, $response);
Arguments
Illuminate\Http\Request {#45
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/products/-220"
#requestUri: "/products/-220"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#772}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#2811 …4}
#routeResolver: Closure() {#2809 …4}
basePath: ""
format: "html"
}