ErrorException
ErrorException
imagecreatefromjpeg(/imagenes/2025-03/WhatsApp Image 2025-03-13 at 11.20.23.jpeg): Failed to open stream: No such file or directory
GET www.rosarito.gob.mx
PHP 8.2.17 — Laravel 11.23.5
C:\Server1\apps\PortalRto2024\app\Helpers\ImageThumbnailHelper.php
:130
switch ($extension) {
case 'jpg':
case 'jpeg':
return imagecreatefromjpeg($filePath);
case 'png':
return imagecreatefrompng($filePath);
case 'gif':
return imagecreatefromgif($filePath);
default:
return false; // Tipo de archivo no soportado
}
}
private function correctImageOrientation($image, $filePath)
{
if (!function_exists('exif_read_data')) {
switch ($extension) { case 'jpg': case 'jpeg': return imagecreatefromjpeg($filePath); case 'png': return imagecreatefrompng($filePath); case 'gif': return imagecreatefromgif($filePath); default: return false; // Tipo de archivo no soportado } } private function correctImageOrientation($image, $filePath) { if (!function_exists('exif_read_data')) {
C:\Server1\apps\PortalRto2024\app\Helpers\ImageThumbnailHelper.php
:38
if(file_exists($newDrivePathToImage))
return $newFile;
//dd([$drivePathToImage, $newDrivePathToImage]);
$sourceImage = $this->createImageFromFile($drivePathToImage);
if (!$sourceImage) {
return response()->json(['error' => 'Unsupported image type.'], 400);
}
$size1 = imagesx($sourceImage).'x'.imagesy($sourceImage);
$sourceImage = $this->correctImageOrientation($sourceImage, $drivePathToImage);
$size2 = imagesx($sourceImage).'x'.imagesy($sourceImage);
// $sourceImage = $this->correctImageOrientation($sourceImage, $drivePathToImage);
if(file_exists($newDrivePathToImage)) return $newFile; //dd([$drivePathToImage, $newDrivePathToImage]); $sourceImage = $this->createImageFromFile($drivePathToImage); if (!$sourceImage) { return response()->json(['error' => 'Unsupported image type.'], 400); } $size1 = imagesx($sourceImage).'x'.imagesy($sourceImage); $sourceImage = $this->correctImageOrientation($sourceImage, $drivePathToImage); $size2 = imagesx($sourceImage).'x'.imagesy($sourceImage); // $sourceImage = $this->correctImageOrientation($sourceImage, $drivePathToImage);
C:\Server1\apps\PortalRto2024\app\Helpers\ImageThumbnailHelper.php
:11
class ImageThumbnailHelper
{
public function urlMakeImg($path, $formato = '300x300', $newFolder = null)
{
return ImageThumbnailHelper::MakeFile($path, $newFolder, $formato);
}
public function MakeFile($originalPhotoPath, $newPublicFolder, $formato) // genera el thumnail fisicamente
{
$split = explode('x', $formato);
$width = intval($split[0]);
$height = intval($split[1]);
$pathInfo = pathinfo($originalPhotoPath);
$folderOriginal = webSlasch.$pathInfo['dirname'];
class ImageThumbnailHelper { public function urlMakeImg($path, $formato = '300x300', $newFolder = null) { return ImageThumbnailHelper::MakeFile($path, $newFolder, $formato); } public function MakeFile($originalPhotoPath, $newPublicFolder, $formato) // genera el thumnail fisicamente { $split = explode('x', $formato); $width = intval($split[0]); $height = intval($split[1]); $pathInfo = pathinfo($originalPhotoPath); $folderOriginal = webSlasch.$pathInfo['dirname'];
C:\Server1\apps\PortalRto2024\app\Helpers\ImageThumbnailHelper.php
:214
if (!function_exists('urlImg')) {
function urlImg($path, $formato = '300x300', $newFolder)
{
$img = new ImageThumbnailHelper();
return str_replace('a//i', 'a/i',url($img->urlMakeImg($path, $formato, $newFolder)));
}
}
if (!function_exists('urlImg')) { function urlImg($path, $formato = '300x300', $newFolder) { $img = new ImageThumbnailHelper(); return str_replace('a//i', 'a/i',url($img->urlMakeImg($path, $formato, $newFolder))); } }
C:\Server1\apps\PortalRto2024\resources\views\front-end\section\bigSlider.blade.php
:8
<section class="hero-slider-area">
<div class="hero-slider-active-2 slick-dot-style" style="border-top: 5px solid #C36785; border-bottom: 5px solid #C36785; margin-top: 30px;">
@foreach($ultimosTres as $post)
<div class="single-slider">
<div class="hero-bg" style="background-image:url('{{ str_replace(' ', '%20', \App\Helpers\urlImg($post->fotos->first()->path, '1170x650', 'prensa')) }}')">
<div class="container">
<div class="row">
<div class="col-12">
<div class="content-inner">
<div class="hero-slider-content">
<h1 class="tituloPrincipal lisidora_sans fs-2 fs-lg-1 ">{{ cortarCadenaSpace($post->titulo, 80) }}</h1>
<a href="{{ url('nota/'.$post->slug) }}" class="btn-hero">{{ $post->slug }}</a>
</div>
</div>
<section class="hero-slider-area"> <div class="hero-slider-active-2 slick-dot-style" style="border-top: 5px solid #C36785; border-bottom: 5px solid #C36785; margin-top: 30px;"> @foreach($ultimosTres as $post) <div class="single-slider"> <div class="hero-bg" style="background-image:url('{{ str_replace(' ', '%20', \App\Helpers\urlImg($post->fotos->first()->path, '1170x650', 'prensa')) }}')"> <div class="container"> <div class="row"> <div class="col-12"> <div class="content-inner"> <div class="hero-slider-content"> <h1 class="tituloPrincipal lisidora_sans fs-2 fs-lg-1 ">{{ cortarCadenaSpace($post->titulo, 80) }}</h1> <a href="{{ url('nota/'.$post->slug) }}" class="btn-hero">{{ $post->slug }}</a> </div> </div>
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Filesystem\Filesystem.php
:123
$__data = $data;
return (static function () use ($__path, $__data) {
extract($__data, EXTR_SKIP);
return require $__path;
})();
}
throw new FileNotFoundException("File does not exist at path {$path}.");
}
/**
* Require the given file once.
*
* @param string $path
* @param array $data
$__data = $data; return (static function () use ($__path, $__data) { extract($__data, EXTR_SKIP); return require $__path; })(); } throw new FileNotFoundException("File does not exist at path {$path}."); } /** * Require the given file once. * * @param string $path * @param array $data
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Filesystem\Filesystem.php
:124
return (static function () use ($__path, $__data) {
extract($__data, EXTR_SKIP);
return require $__path;
})();
}
throw new FileNotFoundException("File does not exist at path {$path}.");
}
/**
* Require the given file once.
*
* @param string $path
* @param array $data
* @return mixed
return (static function () use ($__path, $__data) { extract($__data, EXTR_SKIP); return require $__path; })(); } throw new FileNotFoundException("File does not exist at path {$path}."); } /** * Require the given file once. * * @param string $path * @param array $data * @return mixed
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\View\Engines\PhpEngine.php
:58
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
$this->files->getRequire($path, $data);
} catch (Throwable $e) {
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Throwable $e
// We'll evaluate the contents of the view inside a try/catch block so we can // flush out any stray output that might get out before an error occurs or // an exception is thrown. This prevents any partial views from leaking. try { $this->files->getRequire($path, $data); } catch (Throwable $e) { $this->handleViewException($e, $obLevel); } return ltrim(ob_get_clean()); } /** * Handle a view exception. * * @param \Throwable $e
C:\Server1\apps\PortalRto2024\vendor\livewire\livewire\src\Mechanisms\ExtendBlade\ExtendedCompilerEngine.php
:22
}
protected function evaluatePath($__path, $__data)
{
if (! ExtendBlade::isRenderingLivewireComponent()) {
return parent::evaluatePath($__path, $__data);
}
$obLevel = ob_get_level();
ob_start();
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
$component = ExtendBlade::currentRendering();
} protected function evaluatePath($__path, $__data) { if (! ExtendBlade::isRenderingLivewireComponent()) { return parent::evaluatePath($__path, $__data); } $obLevel = ob_get_level(); ob_start(); // We'll evaluate the contents of the view inside a try/catch block so we can // flush out any stray output that might get out before an error occurs or // an exception is thrown. This prevents any partial views from leaking. try { $component = ExtendBlade::currentRendering();
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\View\Engines\CompilerEngine.php
:74
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
try {
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
} catch (ViewException $e) {
if (! str($e->getMessage())->contains(['No such file or directory', 'File does not exist at path'])) {
throw $e;
}
if (! isset($this->compiledOrNotExpired[$path])) {
throw $e;
}
$this->compiler->compile($path);
// Once we have the path to the compiled file, we will evaluate the paths with // typical PHP just like any other templates. We also keep a stack of views // which have been rendered for right exception messages to be generated. try { $results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data); } catch (ViewException $e) { if (! str($e->getMessage())->contains(['No such file or directory', 'File does not exist at path'])) { throw $e; } if (! isset($this->compiledOrNotExpired[$path])) { throw $e; } $this->compiler->compile($path);
C:\Server1\apps\PortalRto2024\vendor\livewire\livewire\src\Mechanisms\ExtendBlade\ExtendedCompilerEngine.php
:10
use function Livewire\trigger;
class ExtendedCompilerEngine extends \Illuminate\View\Engines\CompilerEngine {
public function get($path, array $data = [])
{
if (! ExtendBlade::isRenderingLivewireComponent()) return parent::get($path, $data);
$currentComponent = ExtendBlade::currentRendering();
trigger('view:compile', $currentComponent, $path);
return parent::get($path, $data);
}
protected function evaluatePath($__path, $__data)
{
if (! ExtendBlade::isRenderingLivewireComponent()) {
use function Livewire\trigger; class ExtendedCompilerEngine extends \Illuminate\View\Engines\CompilerEngine { public function get($path, array $data = []) { if (! ExtendBlade::isRenderingLivewireComponent()) return parent::get($path, $data); $currentComponent = ExtendBlade::currentRendering(); trigger('view:compile', $currentComponent, $path); return parent::get($path, $data); } protected function evaluatePath($__path, $__data) { if (! ExtendBlade::isRenderingLivewireComponent()) {
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\View\View.php
:208
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
* Get the data bound to the view instance.
*
* @return array
*/
public function gatherData()
{
$data = array_merge($this->factory->getShared(), $this->data);
* * @return string */ protected function getContents() { return $this->engine->get($this->path, $this->gatherData()); } /** * Get the data bound to the view instance. * * @return array */ public function gatherData() { $data = array_merge($this->factory->getShared(), $this->data);
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\View\View.php
:191
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each section gets flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
return $contents;
}
/**
* Get the evaluated contents of the view.
// clear out the sections for any separate views that may be rendered. $this->factory->incrementRender(); $this->factory->callComposer($this); $contents = $this->getContents(); // Once we've finished rendering the view, we'll decrement the render count // so that each section gets flushed out next time a view is created and // no old sections are staying around in the memory of an environment. $this->factory->decrementRender(); return $contents; } /** * Get the evaluated contents of the view.
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\View\View.php
:160
* @throws \Throwable
*/
public function render(?callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? $callback($this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
// another view gets rendered in the future by the application developer.
$this->factory->flushStateIfDoneRendering();
return ! is_null($response) ? $response : $contents;
} catch (Throwable $e) {
$this->factory->flushState();
* @throws \Throwable */ public function render(?callable $callback = null) { try { $contents = $this->renderContents(); $response = isset($callback) ? $callback($this, $contents) : null; // Once we have the contents of the view, we will flush the sections if we are // done rendering all views so that there is nothing left hanging over when // another view gets rendered in the future by the application developer. $this->factory->flushStateIfDoneRendering(); return ! is_null($response) ? $response : $contents; } catch (Throwable $e) { $this->factory->flushState();
C:\Server1\apps\PortalRto2024\resources\views\front-end\blog-index.blade.php
:31
@section('content')
@if($posts->currentPage() == 1)
@include('front-end.section.bigSlider')
@endif
<!-- latest news area start -->
<section class="latest-news section-space">
<div class="container">
<div class="row">
@include('front-end.blog-index-sidebar')
<div class="col-lg-9 order-1">
<div class="col-12">
@section('content') @if($posts->currentPage() == 1) @include('front-end.section.bigSlider') @endif <!-- latest news area start --> <section class="latest-news section-space"> <div class="container"> <div class="row"> @include('front-end.blog-index-sidebar') <div class="col-lg-9 order-1"> <div class="col-12">
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Filesystem\Filesystem.php
:123
$__data = $data;
return (static function () use ($__path, $__data) {
extract($__data, EXTR_SKIP);
return require $__path;
})();
}
throw new FileNotFoundException("File does not exist at path {$path}.");
}
/**
* Require the given file once.
*
* @param string $path
* @param array $data
$__data = $data; return (static function () use ($__path, $__data) { extract($__data, EXTR_SKIP); return require $__path; })(); } throw new FileNotFoundException("File does not exist at path {$path}."); } /** * Require the given file once. * * @param string $path * @param array $data
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Filesystem\Filesystem.php
:124
return (static function () use ($__path, $__data) {
extract($__data, EXTR_SKIP);
return require $__path;
})();
}
throw new FileNotFoundException("File does not exist at path {$path}.");
}
/**
* Require the given file once.
*
* @param string $path
* @param array $data
* @return mixed
return (static function () use ($__path, $__data) { extract($__data, EXTR_SKIP); return require $__path; })(); } throw new FileNotFoundException("File does not exist at path {$path}."); } /** * Require the given file once. * * @param string $path * @param array $data * @return mixed
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\View\Engines\PhpEngine.php
:58
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
$this->files->getRequire($path, $data);
} catch (Throwable $e) {
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Throwable $e
// We'll evaluate the contents of the view inside a try/catch block so we can // flush out any stray output that might get out before an error occurs or // an exception is thrown. This prevents any partial views from leaking. try { $this->files->getRequire($path, $data); } catch (Throwable $e) { $this->handleViewException($e, $obLevel); } return ltrim(ob_get_clean()); } /** * Handle a view exception. * * @param \Throwable $e
C:\Server1\apps\PortalRto2024\vendor\livewire\livewire\src\Mechanisms\ExtendBlade\ExtendedCompilerEngine.php
:22
}
protected function evaluatePath($__path, $__data)
{
if (! ExtendBlade::isRenderingLivewireComponent()) {
return parent::evaluatePath($__path, $__data);
}
$obLevel = ob_get_level();
ob_start();
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
$component = ExtendBlade::currentRendering();
} protected function evaluatePath($__path, $__data) { if (! ExtendBlade::isRenderingLivewireComponent()) { return parent::evaluatePath($__path, $__data); } $obLevel = ob_get_level(); ob_start(); // We'll evaluate the contents of the view inside a try/catch block so we can // flush out any stray output that might get out before an error occurs or // an exception is thrown. This prevents any partial views from leaking. try { $component = ExtendBlade::currentRendering();
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\View\Engines\CompilerEngine.php
:74
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
try {
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
} catch (ViewException $e) {
if (! str($e->getMessage())->contains(['No such file or directory', 'File does not exist at path'])) {
throw $e;
}
if (! isset($this->compiledOrNotExpired[$path])) {
throw $e;
}
$this->compiler->compile($path);
// Once we have the path to the compiled file, we will evaluate the paths with // typical PHP just like any other templates. We also keep a stack of views // which have been rendered for right exception messages to be generated. try { $results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data); } catch (ViewException $e) { if (! str($e->getMessage())->contains(['No such file or directory', 'File does not exist at path'])) { throw $e; } if (! isset($this->compiledOrNotExpired[$path])) { throw $e; } $this->compiler->compile($path);
C:\Server1\apps\PortalRto2024\vendor\livewire\livewire\src\Mechanisms\ExtendBlade\ExtendedCompilerEngine.php
:10
use function Livewire\trigger;
class ExtendedCompilerEngine extends \Illuminate\View\Engines\CompilerEngine {
public function get($path, array $data = [])
{
if (! ExtendBlade::isRenderingLivewireComponent()) return parent::get($path, $data);
$currentComponent = ExtendBlade::currentRendering();
trigger('view:compile', $currentComponent, $path);
return parent::get($path, $data);
}
protected function evaluatePath($__path, $__data)
{
if (! ExtendBlade::isRenderingLivewireComponent()) {
use function Livewire\trigger; class ExtendedCompilerEngine extends \Illuminate\View\Engines\CompilerEngine { public function get($path, array $data = []) { if (! ExtendBlade::isRenderingLivewireComponent()) return parent::get($path, $data); $currentComponent = ExtendBlade::currentRendering(); trigger('view:compile', $currentComponent, $path); return parent::get($path, $data); } protected function evaluatePath($__path, $__data) { if (! ExtendBlade::isRenderingLivewireComponent()) {
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\View\View.php
:208
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
* Get the data bound to the view instance.
*
* @return array
*/
public function gatherData()
{
$data = array_merge($this->factory->getShared(), $this->data);
* * @return string */ protected function getContents() { return $this->engine->get($this->path, $this->gatherData()); } /** * Get the data bound to the view instance. * * @return array */ public function gatherData() { $data = array_merge($this->factory->getShared(), $this->data);
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\View\View.php
:191
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each section gets flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
return $contents;
}
/**
* Get the evaluated contents of the view.
// clear out the sections for any separate views that may be rendered. $this->factory->incrementRender(); $this->factory->callComposer($this); $contents = $this->getContents(); // Once we've finished rendering the view, we'll decrement the render count // so that each section gets flushed out next time a view is created and // no old sections are staying around in the memory of an environment. $this->factory->decrementRender(); return $contents; } /** * Get the evaluated contents of the view.
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\View\View.php
:160
* @throws \Throwable
*/
public function render(?callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? $callback($this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
// another view gets rendered in the future by the application developer.
$this->factory->flushStateIfDoneRendering();
return ! is_null($response) ? $response : $contents;
} catch (Throwable $e) {
$this->factory->flushState();
* @throws \Throwable */ public function render(?callable $callback = null) { try { $contents = $this->renderContents(); $response = isset($callback) ? $callback($this, $contents) : null; // Once we have the contents of the view, we will flush the sections if we are // done rendering all views so that there is nothing left hanging over when // another view gets rendered in the future by the application developer. $this->factory->flushStateIfDoneRendering(); return ! is_null($response) ? $response : $contents; } catch (Throwable $e) { $this->factory->flushState();
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Http\Response.php
:70
// If this content implements the "Renderable" interface then we will call the
// render method on the object so we will avoid any "__toString" exceptions
// that might be thrown and have their errors obscured by PHP's handling.
elseif ($content instanceof Renderable) {
$content = $content->render();
}
parent::setContent($content);
return $this;
}
/**
* Determine if the given content should be turned into JSON.
*
* @param mixed $content
// If this content implements the "Renderable" interface then we will call the // render method on the object so we will avoid any "__toString" exceptions // that might be thrown and have their errors obscured by PHP's handling. elseif ($content instanceof Renderable) { $content = $content->render(); } parent::setContent($content); return $this; } /** * Determine if the given content should be turned into JSON. * * @param mixed $content
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Http\Response.php
:35
*/
public function __construct($content = '', $status = 200, array $headers = [])
{
$this->headers = new ResponseHeaderBag($headers);
$this->setContent($content);
$this->setStatusCode($status);
$this->setProtocolVersion('1.0');
}
/**
* Set the content on the response.
*
* @param mixed $content
* @return $this
*
* @throws \InvalidArgumentException
*/ public function __construct($content = '', $status = 200, array $headers = []) { $this->headers = new ResponseHeaderBag($headers); $this->setContent($content); $this->setStatusCode($status); $this->setProtocolVersion('1.0'); } /** * Set the content on the response. * * @param mixed $content * @return $this * * @throws \InvalidArgumentException
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Routing\Router.php
:920
$response instanceof JsonSerializable ||
$response instanceof stdClass ||
is_array($response))) {
$response = new JsonResponse($response);
} elseif (! $response instanceof SymfonyResponse) {
$response = new Response($response, 200, ['Content-Type' => 'text/html']);
}
if ($response->getStatusCode() === Response::HTTP_NOT_MODIFIED) {
$response->setNotModified();
}
return $response->prepare($request);
}
/**
* Substitute the route bindings onto the route.
$response instanceof JsonSerializable || $response instanceof stdClass || is_array($response))) { $response = new JsonResponse($response); } elseif (! $response instanceof SymfonyResponse) { $response = new Response($response, 200, ['Content-Type' => 'text/html']); } if ($response->getStatusCode() === Response::HTTP_NOT_MODIFIED) { $response->setNotModified(); } return $response->prepare($request); } /** * Substitute the route bindings onto the route.
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Routing\Router.php
:887
*/
public function prepareResponse($request, $response)
{
$this->events->dispatch(new PreparingResponse($request, $response));
return tap(static::toResponse($request, $response), function ($response) use ($request) {
$this->events->dispatch(new ResponsePrepared($request, $response));
});
}
/**
* Static version of prepareResponse.
*
* @param \Symfony\Component\HttpFoundation\Request $request
* @param mixed $response
* @return \Symfony\Component\HttpFoundation\Response
*/
*/ public function prepareResponse($request, $response) { $this->events->dispatch(new PreparingResponse($request, $response)); return tap(static::toResponse($request, $response), function ($response) use ($request) { $this->events->dispatch(new ResponsePrepared($request, $response)); }); } /** * Static version of prepareResponse. * * @param \Symfony\Component\HttpFoundation\Request $request * @param mixed $response * @return \Symfony\Component\HttpFoundation\Response */
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Routing\Router.php
:807
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(fn ($request) => $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)
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route); return (new Pipeline($this->container)) ->send($request) ->through($middleware) ->then(fn ($request) => $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)
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php
:144
*/
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 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 */
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Routing\Middleware\SubstituteBindings.php
:51
}
throw $exception;
}
return $next($request);
}
}
} throw $exception; } return $next($request); } }
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php
:183
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
// since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /**
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php
:88
$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.
$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.
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php
:183
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
// since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /**
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php
:49
// 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);
}
}
// 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); } }
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php
:183
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
// since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /**
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php
:121
$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;
$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;
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php
:64
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 ($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)
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php
:183
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
// since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /**
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php
:37
* @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;
}
}
* @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; } }
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php
:183
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
// since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /**
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php
:75
* @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) {
* @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) {
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php
:183
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
// since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /**
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php
:119
{
$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;
{ $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;
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Routing\Router.php
:807
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(fn ($request) => $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)
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route); return (new Pipeline($this->container)) ->send($request) ->through($middleware) ->then(fn ($request) => $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)
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Routing\Router.php
:786
$request->setRouteResolver(fn () => $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)
$request->setRouteResolver(fn () => $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)
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Routing\Router.php
:750
* @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->events->dispatch(new Routing($request));
* @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->events->dispatch(new Routing($request));
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Routing\Router.php
:739
*/
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));
*/ 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));
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php
:201
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)
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)
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php
:144
*/
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 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 */
C:\Server1\apps\PortalRto2024\vendor\livewire\livewire\src\Features\SupportDisablingBackButtonCache\DisableBackButtonCacheMiddleware.php
:19
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
if ($response instanceof Response && SupportDisablingBackButtonCache::$disableBackButtonCache){
$response->headers->add([
'Pragma' => 'no-cache',
'Expires' => 'Fri, 01 Jan 1990 00:00:00 GMT',
'Cache-Control' => 'no-cache, must-revalidate, no-store, max-age=0, private',
]);
}
return $response;
}
* @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { $response = $next($request); if ($response instanceof Response && SupportDisablingBackButtonCache::$disableBackButtonCache){ $response->headers->add([ 'Pragma' => 'no-cache', 'Expires' => 'Fri, 01 Jan 1990 00:00:00 GMT', 'Cache-Control' => 'no-cache, must-revalidate, no-store, max-age=0, private', ]); } return $response; }
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php
:183
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
// since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /**
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php
:21
*/
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);
*/ 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);
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull.php
:31
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 ($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) {
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php
:183
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
// since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /**
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php
:21
*/
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);
*/ 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);
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TrimStrings.php
:51
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 ($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) {
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php
:183
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
// since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /**
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Http\Middleware\ValidatePostSize.php
:27
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;
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;
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php
:183
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
// since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /**
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance.php
:110
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)
{
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) {
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php
:183
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
// since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /**
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Http\Middleware\HandleCors.php
:49
* @return \Illuminate\Http\Response
*/
public function handle($request, Closure $next)
{
if (! $this->hasMatchingPath($request)) {
return $next($request);
}
$this->cors->setOptions($this->container['config']->get('cors', []));
if ($this->cors->isPreflightRequest($request)) {
$response = $this->cors->handlePreflightRequest($request);
$this->cors->varyHeader($response, 'Access-Control-Request-Method');
return $response;
}
* @return \Illuminate\Http\Response */ public function handle($request, Closure $next) { if (! $this->hasMatchingPath($request)) { return $next($request); } $this->cors->setOptions($this->container['config']->get('cors', [])); if ($this->cors->isPreflightRequest($request)) { $response = $this->cors->handlePreflightRequest($request); $this->cors->varyHeader($response, 'Access-Control-Request-Method'); return $response; }
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php
:183
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
// since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /**
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Http\Middleware\TrustProxies.php
:58
{
$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');
{ $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');
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php
:183
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
// since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /**
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\InvokeDeferredCallbacks.php
:22
* @param \Closure $next
* @return \Symfony\Component\HttpFoundation\Response
*/
public function handle(Request $request, Closure $next)
{
return $next($request);
}
/**
* Invoke the deferred callbacks.
*
* @param \Illuminate\Http\Request $request
* @param \Symfony\Component\HttpFoundation\Response $response
* @return void
*/
public function terminate(Request $request, Response $response)
{
* @param \Closure $next * @return \Symfony\Component\HttpFoundation\Response */ public function handle(Request $request, Closure $next) { return $next($request); } /** * Invoke the deferred callbacks. * * @param \Illuminate\Http\Request $request * @param \Symfony\Component\HttpFoundation\Response $response * @return void */ public function terminate(Request $request, Response $response) {
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php
:183
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
/**
// since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /**
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php
:119
{
$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;
{ $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;
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php
:176
$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());
$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());
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php
:145
$this->requestStartedAt = Carbon::now();
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;
$this->requestStartedAt = Carbon::now(); 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;
C:\Server1\apps\PortalRto2024\vendor\laravel\framework\src\Illuminate\Foundation\Application.php
:1188
*/
public function handleRequest(Request $request)
{
$kernel = $this->make(HttpKernelContract::class);
$response = $kernel->handle($request)->send();
$kernel->terminate($request, $response);
}
/**
* Handle the incoming Artisan command.
*
* @param \Symfony\Component\Console\Input\InputInterface $input
* @return int
*/
public function handleCommand(InputInterface $input)
*/ public function handleRequest(Request $request) { $kernel = $this->make(HttpKernelContract::class); $response = $kernel->handle($request)->send(); $kernel->terminate($request, $response); } /** * Handle the incoming Artisan command. * * @param \Symfony\Component\Console\Input\InputInterface $input * @return int */ public function handleCommand(InputInterface $input)
C:\Server1\apps\PortalRto2024\public\index.php
:17
// Register the Composer autoloader...
require __DIR__.'/../vendor/autoload.php';
// Bootstrap Laravel and handle the request...
(require_once __DIR__.'/../bootstrap/app.php')
->handleRequest(Request::capture());
// Register the Composer autoloader... require __DIR__.'/../vendor/autoload.php'; // Bootstrap Laravel and handle the request... (require_once __DIR__.'/../bootstrap/app.php') ->handleRequest(Request::capture());
Request
GET
/
Headers
host
www.rosarito.gob.mx
connection
keep-alive
pragma
no-cache
cache-control
no-cache
sec-ch-ua
"HeadlessChrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"
sec-ch-ua-mobile
?0
sec-ch-ua-platform
"Windows"
upgrade-insecure-requests
1
user-agent
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
accept
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
sec-fetch-site
same-site
sec-fetch-mode
navigate
sec-fetch-dest
document
referer
https://rosarito.gob.mx/
accept-encoding
gzip, deflate, br, zstd
Body
{
"Bienvenidos": null
}
Application
Routing
controller
App\Http\Controllers\BlogController@blogIndex
route name
blog.cambio
middleware
web
Database Queries
mysql
(2.34 ms)
select * from `sessions` where `id` = 'YlEDRU8WbCFNkfGtJWPMSx0ftEXG2zfb1C5PT1Fg' limit 1
mysql
(0.53 ms)
select * from `menus` where `parent` = 1
mysql
(0.49 ms)
select * from `menus` where `menus`.`parent` in (2, 3, 4, 11, 14, 15)
mysql
(0.36 ms)
select * from `menus` where `id` = 29 limit 1
mysql
(0.35 ms)
select * from `menus` where `menus`.`parent` in (29)
editorCom
(15.68 ms)
select * from `posts` where `categorie_id` = 1 and `estado` = 5 order by `created_at` desc limit 3
editorCom
(0.7 ms)
select count(*) as aggregate from `posts` where `id` not in (268, 267, 266) and `estado` = 5
editorCom
(0.81 ms)
select * from `posts` where `id` not in (268, 267, 266) and `estado` = 5 order by `created_at` desc limit 12 offset 0
editorCom
(0.76 ms)
select `fotos`.*, `post_foto`.`post_id` as `pivot_post_id`, `post_foto`.`foto_id` as `pivot_foto_id`, `post_foto`.`is_principal` as `pivot_is_principal`, `post_foto`.`created_at` as `pivot_created_at`, `post_foto`.`updated_at` as `pivot_updated_at` from `fotos` inner join `post_foto` on `fotos`.`id` = `post_foto`.`foto_id` where `post_foto`.`post_id` = 268 and `post_foto`.`is_principal` = '1' order by `is_principal` desc limit 1
editorCom
(0.46 ms)
select `fotos`.*, `post_foto`.`post_id` as `pivot_post_id`, `post_foto`.`foto_id` as `pivot_foto_id`, `post_foto`.`is_principal` as `pivot_is_principal`, `post_foto`.`created_at` as `pivot_created_at`, `post_foto`.`updated_at` as `pivot_updated_at` from `fotos` inner join `post_foto` on `fotos`.`id` = `post_foto`.`foto_id` where `post_foto`.`post_id` = 267 and `post_foto`.`is_principal` = '1' order by `is_principal` desc limit 1
editorCom
(0.57 ms)
select `fotos`.*, `post_foto`.`post_id` as `pivot_post_id`, `post_foto`.`foto_id` as `pivot_foto_id`, `post_foto`.`is_principal` as `pivot_is_principal`, `post_foto`.`created_at` as `pivot_created_at`, `post_foto`.`updated_at` as `pivot_updated_at` from `fotos` inner join `post_foto` on `fotos`.`id` = `post_foto`.`foto_id` where `post_foto`.`post_id` = 266 and `post_foto`.`is_principal` = '1' order by `is_principal` desc limit 1
editorCom
(0.49 ms)
select `fotos`.*, `post_foto`.`post_id` as `pivot_post_id`, `post_foto`.`foto_id` as `pivot_foto_id`, `post_foto`.`is_principal` as `pivot_is_principal`, `post_foto`.`created_at` as `pivot_created_at`, `post_foto`.`updated_at` as `pivot_updated_at` from `fotos` inner join `post_foto` on `fotos`.`id` = `post_foto`.`foto_id` where `post_foto`.`post_id` = 265 and `post_foto`.`is_principal` = '1' order by `is_principal` desc limit 1
editorCom
(0.51 ms)
select `fotos`.*, `post_foto`.`post_id` as `pivot_post_id`, `post_foto`.`foto_id` as `pivot_foto_id`, `post_foto`.`is_principal` as `pivot_is_principal`, `post_foto`.`created_at` as `pivot_created_at`, `post_foto`.`updated_at` as `pivot_updated_at` from `fotos` inner join `post_foto` on `fotos`.`id` = `post_foto`.`foto_id` where `post_foto`.`post_id` = 264 and `post_foto`.`is_principal` = '1' order by `is_principal` desc limit 1
editorCom
(0.52 ms)
select `fotos`.*, `post_foto`.`post_id` as `pivot_post_id`, `post_foto`.`foto_id` as `pivot_foto_id`, `post_foto`.`is_principal` as `pivot_is_principal`, `post_foto`.`created_at` as `pivot_created_at`, `post_foto`.`updated_at` as `pivot_updated_at` from `fotos` inner join `post_foto` on `fotos`.`id` = `post_foto`.`foto_id` where `post_foto`.`post_id` = 263 and `post_foto`.`is_principal` = '1' order by `is_principal` desc limit 1
editorCom
(0.44 ms)
select `fotos`.*, `post_foto`.`post_id` as `pivot_post_id`, `post_foto`.`foto_id` as `pivot_foto_id`, `post_foto`.`is_principal` as `pivot_is_principal`, `post_foto`.`created_at` as `pivot_created_at`, `post_foto`.`updated_at` as `pivot_updated_at` from `fotos` inner join `post_foto` on `fotos`.`id` = `post_foto`.`foto_id` where `post_foto`.`post_id` = 262 and `post_foto`.`is_principal` = '1' order by `is_principal` desc limit 1
editorCom
(0.36 ms)
select `fotos`.*, `post_foto`.`post_id` as `pivot_post_id`, `post_foto`.`foto_id` as `pivot_foto_id`, `post_foto`.`is_principal` as `pivot_is_principal`, `post_foto`.`created_at` as `pivot_created_at`, `post_foto`.`updated_at` as `pivot_updated_at` from `fotos` inner join `post_foto` on `fotos`.`id` = `post_foto`.`foto_id` where `post_foto`.`post_id` = 261 and `post_foto`.`is_principal` = '1' order by `is_principal` desc limit 1
editorCom
(0.38 ms)
select `fotos`.*, `post_foto`.`post_id` as `pivot_post_id`, `post_foto`.`foto_id` as `pivot_foto_id`, `post_foto`.`is_principal` as `pivot_is_principal`, `post_foto`.`created_at` as `pivot_created_at`, `post_foto`.`updated_at` as `pivot_updated_at` from `fotos` inner join `post_foto` on `fotos`.`id` = `post_foto`.`foto_id` where `post_foto`.`post_id` = 260 and `post_foto`.`is_principal` = '1' order by `is_principal` desc limit 1
editorCom
(0.39 ms)
select `fotos`.*, `post_foto`.`post_id` as `pivot_post_id`, `post_foto`.`foto_id` as `pivot_foto_id`, `post_foto`.`is_principal` as `pivot_is_principal`, `post_foto`.`created_at` as `pivot_created_at`, `post_foto`.`updated_at` as `pivot_updated_at` from `fotos` inner join `post_foto` on `fotos`.`id` = `post_foto`.`foto_id` where `post_foto`.`post_id` = 259 and `post_foto`.`is_principal` = '1' order by `is_principal` desc limit 1
editorCom
(0.42 ms)
select `fotos`.*, `post_foto`.`post_id` as `pivot_post_id`, `post_foto`.`foto_id` as `pivot_foto_id`, `post_foto`.`is_principal` as `pivot_is_principal`, `post_foto`.`created_at` as `pivot_created_at`, `post_foto`.`updated_at` as `pivot_updated_at` from `fotos` inner join `post_foto` on `fotos`.`id` = `post_foto`.`foto_id` where `post_foto`.`post_id` = 258 and `post_foto`.`is_principal` = '1' order by `is_principal` desc limit 1
editorCom
(0.38 ms)
select `fotos`.*, `post_foto`.`post_id` as `pivot_post_id`, `post_foto`.`foto_id` as `pivot_foto_id`, `post_foto`.`is_principal` as `pivot_is_principal`, `post_foto`.`created_at` as `pivot_created_at`, `post_foto`.`updated_at` as `pivot_updated_at` from `fotos` inner join `post_foto` on `fotos`.`id` = `post_foto`.`foto_id` where `post_foto`.`post_id` = 257 and `post_foto`.`is_principal` = '1' order by `is_principal` desc limit 1
editorCom
(0.35 ms)
select `fotos`.*, `post_foto`.`post_id` as `pivot_post_id`, `post_foto`.`foto_id` as `pivot_foto_id`, `post_foto`.`is_principal` as `pivot_is_principal`, `post_foto`.`created_at` as `pivot_created_at`, `post_foto`.`updated_at` as `pivot_updated_at` from `fotos` inner join `post_foto` on `fotos`.`id` = `post_foto`.`foto_id` where `post_foto`.`post_id` = 256 and `post_foto`.`is_principal` = '1' order by `is_principal` desc limit 1
editorCom
(0.35 ms)
select `fotos`.*, `post_foto`.`post_id` as `pivot_post_id`, `post_foto`.`foto_id` as `pivot_foto_id`, `post_foto`.`is_principal` as `pivot_is_principal`, `post_foto`.`created_at` as `pivot_created_at`, `post_foto`.`updated_at` as `pivot_updated_at` from `fotos` inner join `post_foto` on `fotos`.`id` = `post_foto`.`foto_id` where `post_foto`.`post_id` = 255 and `post_foto`.`is_principal` = '1' order by `is_principal` desc limit 1
editorCom
(0.35 ms)
select `fotos`.*, `post_foto`.`post_id` as `pivot_post_id`, `post_foto`.`foto_id` as `pivot_foto_id`, `post_foto`.`is_principal` as `pivot_is_principal`, `post_foto`.`created_at` as `pivot_created_at`, `post_foto`.`updated_at` as `pivot_updated_at` from `fotos` inner join `post_foto` on `fotos`.`id` = `post_foto`.`foto_id` where `post_foto`.`post_id` = 254 and `post_foto`.`is_principal` = '1' order by `is_principal` desc limit 1
mysql
(0.56 ms)
select * from `cache` where `key` in ('config_site.name')
editorCom
(0.73 ms)
select `fotos`.*, `post_foto`.`post_id` as `pivot_post_id`, `post_foto`.`foto_id` as `pivot_foto_id`, `post_foto`.`is_principal` as `pivot_is_principal`, `post_foto`.`created_at` as `pivot_created_at`, `post_foto`.`updated_at` as `pivot_updated_at` from `fotos` inner join `post_foto` on `fotos`.`id` = `post_foto`.`foto_id` where `post_foto`.`post_id` = 268 order by `is_principal` desc