Laravel framework v12.42.0 現已,主要更新內容如下:
- [12.x] 改進
Context::scope()返回類型 #58012 - [12.x] 允許 CarbonInterval 的 duration 輔助函數中使用浮點值 #58006
- 將 whenTableHasIndex 和 whenTableDoesntHaveIndex 添加到 Builder 中 #58005
- [12.x] 添加 commandFileFinder 方法,並從命令發現中排除測試文件 #58017
- 遵循 queue:work 命令中的 --quiet 和 --silent 參數 #58024
- [12.x] 添加對容器的依賴項支持 #58026
- 修復 tests/Support/SupportStringableTest.php 中 StringableObjectStub 類的自動加載問題 #58030
- [12.x] 移除對
optional()的調用 #58027 - [12.x] 添加
newRequest()到 Pool 和 Batch #58038 - [12.x] 調整監聽器文檔塊併為查詢形狀添加單元測試 #58040
- [12.x] feat::在並行測試中設置數據庫時添加 pre-migration hook #58011
- [12.x] 支持 PHPUnit 12.5 #58042
- [12.x] 添加對 Translator replacements 中枚舉的支持 #58048
- [12.x] 修復
PendingRequest@pool()&&batch()併發問題 #57973 - 統一隊列命令選項描述規範 #58058
- [12.x] 為
illuminate/reflection添加 LICENSE 文件、PR 自動關閉功能及.gitattributes配置 #58055 - [12.x]
PendingRequest@withRequestContext()#58054
詳情可查看更新説明:https://github.com/laravel/framework/releases/tag/v12.42.0