Preview: RegisterErrorViewPaths.php
Size: 467 B
/home/getspomw/royalsquad.us/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/RegisterErrorViewPaths.php
<?php
namespace Illuminate\Foundation\Exceptions;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\View;
class RegisterErrorViewPaths
{
/**
* Register the error view paths.
*
* @return void
*/
public function __invoke()
{
View::replaceNamespace('errors', (new Collection(config('view.paths')))->map(function ($path) {
return "{$path}/errors";
})->push(__DIR__.'/views')->all());
}
}
Directory Contents
Dirs: 3 × Files: 3