dtkt/errors

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

DtKt errors views module

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/dtkt/errors

1.0.1 2019-04-01 08:58 UTC

This package is auto-updated.

Last update: 2025-09-29 02:28:15 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());
    }