creativeorange/pretty-error-pages

There is no license information available for the latest version (v10.0.0) of this package.

v10.0.0 2023-02-24 10:07 UTC

This package is auto-updated.

Last update: 2024-10-14 09:44:47 UTC


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);
        }
    }