creativeorange / pretty-error-pages
Installs: 67
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:Blade
Requires
- php: ^8.0
- laravel/framework: ^7|^8|^9|^10
README
App/Exceptions/Handler.php
public function render($request, Throwable $e) { if ($this->isHttpException($e)) { Route::any(request()->path(), function () use ($e, $request) { return parent::render($request, $e); })->middleware(config('pretty-error-pages.middleware')); return app()->make(Kernel::class)->handle($request); } else { return parent::render($request, $e); } }