Illuminate\Routing\Router::formatGroupPrefix PHP Метод

formatGroupPrefix() защищенный статический Метод

Format the prefix for the new group attributes.
protected static formatGroupPrefix ( array $new, array $old ) : string | null
$new array
$old array
Результат string | null
    protected static function formatGroupPrefix($new, $old)
    {
        $oldPrefix = isset($old['prefix']) ? $old['prefix'] : null;
        if (isset($new['prefix'])) {
            return trim($oldPrefix, '/') . '/' . trim($new['prefix'], '/');
        }
        return $oldPrefix;
    }