Вход Регистрация
Файл: vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/RegisterErrorViewPaths.php
Строк: 17
<?php

namespace IlluminateFoundationExceptions;

use 
IlluminateSupportCollection;
use 
IlluminateSupportFacadesView;

class 
RegisterErrorViewPaths
{
    
/**
     * Register the error view paths.
     *
     * @return void
     */
    
public function __invoke()
    {
        
View::replaceNamespace('errors', (new Collection(config('view.paths')))
            ->
map(fn ($path) => "{$path}/errors")
            ->
push(__DIR__.'/views')
            ->
all()
        );
    }
}
Онлайн: 2
Реклама