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