The Laravel team released v13.32.0 with a new Mercure broadcast driver,
copyToDisk()
和
moveToDisk()
methods on the filesystem, enum support in queue pause and resume, and more:
Mercure Broadcast Driver
凯文·邓格拉斯 contributed a broadcast driver for 汞 , a real-time protocol that runs over SSE instead of WebSockets:
// config/broadcasting.php'汞'
=>
[
'司机'
=>
'汞'
,
'url'
=>
环境
(
'MERCURE_URL'
),
'public_url'
=>
环境
(
'MERCURE_PUBLIC_URL'
),
'秘密'
=>
环境
(
'MERCURE_JWT_SECRET'
),
'encryption_key'
=>
环境
(
'MERCURE_ENCRYPTION_KEY'
),],
和
弗兰肯PHP
, the built-in hub needs no
url
或者
secret
. The driver also supports presence channels and end-to-end encrypted
private-encrypted-*
channels. A companion
Echo patch
adds client support.
看 #61474 和 broadcasting installer support in #61587 更多细节。
贮存
copyToDisk()
和
moveToDisk()
杰克·贝利斯
贡献了
copyToDisk()
和
moveToDisk()
到
FilesystemAdapter
, replacing the manual read-stream-then-write-stream pattern for moving files between disks:
// Copies to the backup disk, retaining the file on the local disk贮存
::
磁盘
(
'当地的'
)
->
copyToDisk
(
'backup'
,
'reports/report.csv'
(英文):// Copies to the backup disk, deleting the file from local disk贮存
::
磁盘
(
'当地的'
)
->
moveToDisk
(
'backup'
,
'reports/report.csv'
(英文):// Specify a different destination path贮存
::
磁盘
(
'当地的'
)
->
copyToDisk
(
's3'
,
'reports/report.csv'
,
'2026/report.csv'
(英文):
A follow-up PR lets you pass a filesystem instance instead of a disk name.
看 #61511 更多细节。
Enums in Queue Pause and Resume
杰克·贝利斯
contributed enum support for
Queue::pause()
,
Queue::resume()
, 和
Queue::pauseFor()
, matching the enum support already available on job
Queue
/
Connection
attributes and manager methods like
route()
和
forward()
:
队列
::
暂停
(
尾巴
::
通知
,
連接
::
雷迪斯
(英文):队列
::
恢复
(
尾巴
::
通知
,
連接
::
雷迪斯
(英文):队列
::
暂停
(
尾巴
::
通知
,
連接
::
雷迪斯
,
60
(英文):
看 #61464 更多细节。
发行说明
您可以在下面查看新功能和更新的完整列表以及之间的差异 13.31.0 and 13.32.0 在 GitHub 上。以下发行说明直接来自 变更日志 :
v13.32.0
- [12.x] Default memoryExceededExitCode for Cloud by @jackbayliss 在 #61432
- Wrap the closure return type in
withFreshQueryLog()经过 @SanderMuller 在 #61458 - Wrap the autocompleter callback return type in
askWithCompletion()经过 @SanderMuller 在 #61487 - [13.x] Allow enums in queue pause/resume methods by @jackbayliss 在 #61464
- [13.x] Compare lowercased index names in hasIndex by @dwjordan 在 #61506
- [13.x] Fix containsStrict() returning false when a closure matches a null value by @bunyaminbilenkaratas 在 #61507
- [13.x] Pass the exception to Eloquent violation callbacks by @jackbayliss 在 #61504
- [13.x] Change unused variables to named arguments by @imanghafoori1 在 #61513
- [13.x] Update SupportBinaryCodecTest by @jackbayliss 在 #61512
- [13.x] Fix Factory::raw() with a count of zero by @OpadaAlzaiede 在 #61510
- [13.x] Add missing implementation for
SessionHandlerInterfacefor PHP 9 by @crynobone 在 #61517 - [13.x] Add copyToDisk & moveToDisk to FilesystemAdapter by @jackbayliss 在 #61511
- [13.x] Add a Mercure broadcast driver by @dunglas 在 #61474
- [13.x] Accept filesystem instance in
copyToDisk()和moveToDisk()方法 @ziadoz 在 #61519 - [13.x] Fix Str::password() returning extra characters and throwing validation errors by @bunyaminbilenkaratas 在 #61521
- [13.x] Fix Str::camel() not lowercasing multibyte first characters by @rayblair06 在 #61545
- [13.x] Fix collapseWithKeys() crashing when the outer collection has string keys by @rayblair06 在 #61539
- [13.x] Fix TypeError in SessionGuard::userFromRecaller() when getAuthPassword() is null by @irabbi360 在 #61532
- Strengthen mocked tests with the real thing by @jasonmccreary 在 #61563
- [13.x] Fix appendToPriorityList() when the referenced middleware is the first item by @GabeSilvaDev 在 #61567
- [13.x] Improve collection return types for methods that mutate by @axlon 在 #61571
- [13.x] 添加
isManagedQueueto CloudManager by @jackbayliss 在 #61568 - [13.x] Fix Redis tagged cache not syncing tag entry expiration on touch by @Ashot1995 在 #61574
- [13.x] Decode job payload once by @jackbayliss 在 #61526
- [13.x] Fix
sum()return type when the key matches a global function name by @crishoj 在 #61578 - [13.x] Add UnitEnum to Authorizable contract by @hosni 在 #61589
- [13.x] Add support for installing Mercure via broadcasting install command by @Lea-Bar 在 #61587
- [13.x] Preserve unchanged values when encrypting readable environment files by @mathiasgrimm 在 #61503






