File "RegisterErrorViewPaths.php"
Full path: /home/orbitecv/orbite-school.orbit.et/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/RegisterErrorViewPaths.php
File size: 423 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Edit Back
<?php
namespace Illuminate\Foundation\Exceptions;
use Illuminate\Support\Facades\View;
class RegisterErrorViewPaths
{
/**
* Register the error view paths.
*
* @return void
*/
public function __invoke()
{
View::replaceNamespace('errors', collect(config('view.paths'))->map(function ($path) {
return "{$path}/errors";
})->push(__DIR__.'/views')->all());
}
}