您现在的位置是:首页 > 文章详情

Laravel 6.13.0 发布

日期:2020-02-01点击:504

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
关注公众号

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。

持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。

转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。

文章评论

共有0条评论来说两句吧...

文章二维码

扫描即可查看该文章

点击排行

推荐阅读

最新文章