Вход Регистрация
Файл: vendor/laravel/framework/src/Illuminate/Console/View/Components/Mutators/EnsureRelativePaths.php
Строк: 27
<?php

namespace IlluminateConsoleViewComponentsMutators;

class 
EnsureRelativePaths
{
    
/**
     * Ensures the given string only contains relative paths.
     *
     * @param  string  $string
     * @return string
     */
    
public function __invoke($string)
    {
        if (
function_exists('app') && app()->has('path.base')) {
            
$string str_replace(base_path().'/'''$string);
        }

        return 
$string;
    }
}
Онлайн: 0
Реклама