IT资讯 Laravel v9.49.0 已发布,经典 PHP 框架

peterson · 2023-02-02 08:30:06 · 热度: 8

经典 PHP 框架 Laravel 现已更新到 9.49 版本,带来以下更新:

添加

  • 添加 Illuminate/Database/Schema/ForeignKeyDefinition::noActionOnDelete()( #45712 )
  • 向 HTTP 客户端添加了新的 throw 辅助方法 ( #45704 )
  • 添加了对 WorkCommand 输出时间戳的可配置时区支持 ( #45722 )
  • 添加了对包含枚举的转换数组的支持 ( #45621 )
  • 添加了“缺失”验证规则 ( #45717 )
  • 添加 /Illuminate/Database/Eloquent/SoftDeletes::forceDeleteQuietly()( #45737 )
  • 添加 Illuminate/Collections/Arr::sortDesc()( #45761 )
  • 添加了 CLI 提示(#45629#45864
  • 为 TestResponse 添加 assertJsonIsArray 和 assertJsonIsObject ( #45731 )
  • 添加 Illuminate/Database/Eloquent/Relations/HasOneOrMany::createQuietly()( #45783 )
  • 添加验证规则:ascii_alpha、ascii_alpha_num、ascii_alpha_dash ( #45769 )
  • 将“addRestoreOrCreate”扩展添加到 SoftDeletingScope ( #45754 )
  • 添加了连接建立事件 ( f850d99 )
  • 向模型添加 forceDeleting 事件 ( #45836 )
  • 在邮件模板中添加标题标签 ( #45859 )
  • 为 Collection 添加了新方法 ( #45839 )
  • 添加跳过取消的中间件 ( #45869 )

修复

  • 修复集群上的 flushdb PredisClusterConnection.php( #45544 )
  • 修复嵌套调用的刀片标签问题 ( #45764 )
  • 修复 Blade 编译器中的无限循环 ( #45780 )
  • 修复 ValidationValidator 不接受终止换行符 ( #45790 )
  • 修复存根发布命令生成不正确的控制器存根 ( #45812 )
  • 修复:规范化路由管道异常 ( #45817 )
  • 修复 Illuminate Filesystem replace() 使文件可执行 ( #45856 )

改变了

  • 确保频道名称从字符串开头匹配 ( #45692 )
  • 用对应的 Unicode 正则表达式符号,替换正则表达式中的原始不可见字符 ( #45680 )
  • 优化 destroy 方法 ( #45709 )
  • Unify 禁止围绕 prohibits_if 的行为 ( #45723 )
  • 删除对 bcmath 的依赖(#45729
  • 允许 brick/math 0.11 ( #45762 )
  • 优化 BelongsToMany 的 findMany ( #45745 )
  • 枚举支持@js( #45862 )
  • 超时工作时,重新启动 SIGALRM 的系统调用 ( #45871 )
  • 确保对 Mailable->to() 的后续调用覆盖以前的条目 ( #45885 )

更新公告:https://github.com/laravel/framework/releases/tag/v9.49.0

 

为您推荐与 laravel 相关的帖子:

暂无回复。
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册