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::en...