设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 软件追踪 查看内容

Laravel 6.13.0发布

2020-2-1 09:49| 发布者: joejoe0332| 查看: 370| 评论: 0|原作者: oschina|来自: oschina

摘要: Laravel 6.13.0 发布了,更新亮点主要有: 允许格式化隐式验证属性 允许验证者为隐式属性配置自定义格式器: // Instead of "0.age must be an integer" // A formatter could do: "age at line 1 must be an intege ...
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


酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部