dtkt/errors

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

DtKt errors views module

1.0.1 2019-04-01 08:58 UTC

This package is auto-updated.

Last update: 2024-03-29 03:51:30 UTC


README

Need to override method registerErrorViewPaths in your App\Exceptions\Handler class.

    protected function registerErrorViewPaths()
    {
        $paths = collect(config('view.paths'));

        View::addNamespace('errors', $paths->map(function ($path) {
            return "{$path}/errors";
        })->push(dirname((new \ReflectionClass(\Illuminate\Foundation\Exceptions\Handler::class))->getFileName()).'/views')->all());
    }