Posted: 31-08-2019

Laravel 6 - Ignition the new error page

Laravel 6  - Ignition the new error page

Laravel 6 that will released has LTS on 3 September 2019 will be shipped with the new default error screen Ignition a new open-source package released by Freek Van der Herten and Marcel Pociot.

Ignition provides a better error interfaces and a rich debug bar whit tab showing stack trace,queries, logs, and dumps.

From  stack trace tab  just clicking on the pencil icon next to the filename on the right hand you can open the file in your favorite editor.
By default Ignition use PhpStorm but it's possible to set your favorite editor in the ignition config file.

Ignition also provide an integration with Laravel Telescope if you've installed it.

You can also install Ignition on Laravel 5.5, 5.6, 5.7 and 5.8  via Composer:

composer require --dev facade/ignition

In Laravel 5.5, 5.6 and 5.7 you will also need to modify your app/Exceptions/Handler.php file to load Ignition instead of the default Whoops page (see Ignition Installation guide)

Add this method to your Handler.php file:

protected function whoopsHandler()
{
    try {
        return app(\Whoops\Handler\HandlerInterface::class);
    } catch (\Illuminate\Contracts\Container\BindingResolutionException $e) {
        return (new \Illuminate\Foundation\Exceptions\WhoopsHandler)->forDebug();
    }
}

The authors Marcel Pociot & Freek Van der Herten wrote a very in-depth article about all the Ignition features on freak.dev blog

Full installation instructions and source code is available on GitHub at facade/ignition.