File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/laravel/framework/src/Illuminate/Routing
Upload
[..]
Attributes/
Rename
Del
CallableDispatcher.php (1.32 KB)
Edit
Rename
Del
Console/
Rename
Del
Contracts/
Rename
Del
ControllerDispatcher.php (2.22 KB)
Edit
Rename
Del
Controllers/
Rename
Del
Events/
Rename
Del
Exceptions/
Rename
Del
FiltersControllerMiddleware.php (524 B)
Edit
Rename
Del
Matching/
Rename
Del
Middleware/
Rename
Del
PendingSingletonResourceRegistration.php (6.78 KB)
Edit
Rename
Del
Pipeline.php (1.49 KB)
Edit
Rename
Del
RedirectController.php (1.22 KB)
Edit
Rename
Del
Redirector.php (7.17 KB)
Edit
Rename
Del
ResponseFactory.php (11.41 KB)
Edit
Rename
Del
RouteUri.php (1.27 KB)
Edit
Rename
Del
RouteUrlGenerator.php (14.61 KB)
Edit
Rename
Del
Edit: Pipeline.php
<?php namespace Illuminate\Routing; use Illuminate\Contracts\Debug\ExceptionHandler; use Illuminate\Contracts\Support\Responsable; use Illuminate\Http\Request; use Illuminate\Pipeline\Pipeline as BasePipeline; use Throwable; /** * This extended pipeline catches any exceptions that occur during each slice. * * The exceptions are converted to HTTP responses for proper middleware handling. */ class Pipeline extends BasePipeline { /** * Handles the value returned from each pipe before passing it to the next. * * @param mixed $carry * @return mixed */ protected function handleCarry($carry) { return $carry instanceof Responsable ? $carry->toResponse($this->getContainer()->make(Request::class)) : $carry; } /** * Handle the given exception. * * @param mixed $passable * @param \Throwable $e * @return mixed * * @throws \Throwable */ protected function handleException($passable, Throwable $e) { if (! $this->container->bound(ExceptionHandler::class) || ! $passable instanceof Request) { throw $e; } $handler = $this->container->make(ExceptionHandler::class); $handler->report($e); $response = $handler->render($passable, $e); if (is_object($response) && method_exists($response, 'withException')) { $response->withException($e); } return $this->handleCarry($response); } }
Simpan