皇上,还记得我吗?我就是1999年那个Linux伊甸园啊-----24小时滚动更新开源资讯,全年无休!

Laravel 6.13.0 发布

Laravel 6.13.0 发布了,更新亮点主要有:

允许格式化隐式验证属性

允许验证者为隐式属性配置自定义格式器:

// Instead of "0.age must be an integer"
// A formatter could do: "age at line 1 must be an integer"
validator(
    [['age' => 'thirty']],
    ['*.age' => 'integer']
)->setImplicitAttributesFormatter(function ($attribute) {
    [$line, $attribute] = explode('.', $attribute);

    return sprintf('%s at line %d', $attribute, $line + 1);
})->validate();

文件系统 sureDirectoryExists 方法

文件系统类新增了 sureDirectoryExists() 方法:

Filesystem::ensureDirectoryExists($path, $mode = 0755, $recursive = true);

如果目录不存在,则此方法将创建目录。

FTP 驱动程序的存储 URL

支持 Storage::url() ,以与 FTP 驱动程序一起使用。

更新说明:https://laravel-news.com/laravel-6-13-0

转自 https://www.oschina.net/news/113080/laravel-6-13-0-released