creativeorange/pretty-error-pages

2,591
Install
composer require creativeorange/pretty-error-pages
Latest Version:v10.0.0
PHP:^8.0
Last Updated:Sep 3, 2026
Links: GitHub  ·  Packagist
Maintainer: creativeorange

pretty-error-pages

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

Related Packages

livewire/flux

The official UI component library for Livewire.

11,345,758 977
infyomlabs/adminlte-templates

AdminLTE templates for InfyOm Laravel Generator

1,645,599 266
garygreen/pretty-routes

Pretty routes for Laravel 5+

1,383,339 650
infyomlabs/swagger-generator

Swagger Generator for InfyOm Laravel Generator

1,122,509 114
snowfire/beautymail

Send beautiful html emails with Laravel

771,556 1,313