preloader

Laravel News
Laravel News
Laravel News
April 6th, 2022

The Laravel team released Laravel v9.7.0 with a whereIn() route parameter constraint method, a Str::squish() helper, JSON path query enhancements, and more:
Erik Gaal contributed the ability to pass a collection to the whereBelongsTo() method in a query builder:
Derek MacDonald contributed support for array index braces in database queries containing JSON paths:
See Pull Request #41767 for further details and related PRs/issues.
Tim Roberson contributed a Routing event that fires before the router attempts to find a matching route. This event allows developers to access the request immediately before routing:
@Propaganistas contributed a whereIn() route parameter constraint method, which can be used to match a route param against an array of allowed values:
OMAR.A contributed to the ability to use batch jobs delay. Before these PR contributions, SQS and Beanstalkd ignored delay time when sending messages to the queue, and now, they consider the delay as expected.
Dwight Watson contributed a squish() string helper to remove all "extra" blank space from a given string. Here are some examples from the pull request tests to get a visual of what squish does:
Derek MacDonald contributed a whereJsonContainsKey() method. It supports checking for array integer keys and supports SQLite. Here are some examples from the pull request description:
OMAR.A contributed the ability to dispatch a batch after the response is sent to the user:
You can see the complete list of new features and updates below and the diff between 9.6.0 and 9.7.0 on GitHub. The following release notes are directly from the changelog:
Filed in:

Full stack web developer. Author of Lumen Programming Guide and Docker for PHP Developers.
Join 33,000+ others and never miss out on new tips, tutorials, and more.
The official Laravel job board connecting the best jobs with top talent.
April 15th, 2022
April 14th, 2022
April 13th, 2022
Subscribe to the Email Newsletter
Follow Laravel News on
Facebook
Twitter
LinkedIn
Instagram
Design & development by
© 2012 – 2022 Laravel News
A division of dotdev inc.

source

Related Post

Leave a Reply

Your email address will not be published.

Translate »