HTTP Query Method Support in Laravel 13.19
Laravel 13.19.0 adds support for the HTTP QUERY verb with a new Http::query() client method and query/queryJson testing helpers.
The release also includes a reduceInto collection method, a counted string helper, and bulk SQS job dispatching, making it a practical update for teams using Laravel’s HTTP client and queue tooling.
Laravel 13.19.0 introduces the Http::query() method, enabling the use of the HTTP QUERY verb. Unlike standard GET requests, this method sends parameters within the request body. It supports both JSON by default and form-encoded data via asForm(), while existing URL query functionality remains unaffected.
To support this new verb in tests, the framework now includes query() and queryJson() helpers. These allow developers to simulate QUERY requests and assert responses, mirroring the behavior of existing testing helpers like delete().
Collection and string utilities have also been expanded. A new reduceInto() method allows for the mutation of an accumulator in place, which is particularly useful for object or array-based accumulations without needing to return a value in every iteration. Additionally, the Str::counted() helper simplifies pluralization by prepending the count to a string in a single call.
Queue performance for SQS is improved by utilizing the SendMessageBatch API for bulk dispatches, reducing the total number of requests. Furthermore, the queue fake now supports the inspection of reserved jobs, enabling tests to verify jobs that have been picked up by a worker but not yet finished.
Readers’ Forum
No contributions yet — open the debate.
Open the discussion
No account or password needed — just enter your e-mail and we’ll send you a one-time sign-in link. First time here? You’re set up automatically.
Your rating will be applied automatically after you sign in.
Check your inbox
We’ve sent a sign-in link to …. Open it on this device — this tab will sign you in automatically.
Waiting for your click …
·