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

        View::replaceNamespace('errors', $paths->map(function ($path) {
            return "{$path}/errors";
        })->push(__DIR__.'/views')->all());
    }
protected function registerErrorViewPaths()
    {
        $paths = collect(config('view.paths'));

        View::replaceNamespace('errors', $paths->map(function ($path) {
            return "{$path}/errors";
        })->push(__DIR__.'/views')->all());
    }
protected function registerErrorViewPaths ( ) { $ paths = collect ( config ( 'view.paths' ) ) ; View :: replaceNamespace ( 'errors' , $ paths -> map ( function ( $ path ) { return "{$path}/errors" ; } ) -> push ( __DIR__ . '/views' ) -> all ( ) ) ; }
Register the error template hint paths.

@return void
Register the error template hint paths .