fb

Released Laravel version 10.31

Home Blog Released Laravel version 10.31

Released Laravel version 10.31

Released Laravel version 10.31

In the current week, the Laravel development team introduced the release of version 10.31, featuring the capability to integrate batches within job chains. This enhancement allows for the sequential execution of jobs, followed by the parallel processing of a batch of jobs, seamlessly continuing the chain after the completion of that batch.

Facilitating the inclusion of a batch in a chain

Sebastien Armand implemented the feature enabling the execution of batches of jobs within a job chain. This functionality addresses scenarios encountered at Square, where certain jobs follow a sequential process, and specific steps either need parallel execution or have an unknown duration during the initial workflow trigger. These steps generate additional jobs, and it's crucial to track their completion to ensure the uninterrupted continuation of the chain.

To illustrate, consider the updated Chains & Batches documentation, which demonstrates tasks such as cache flushing, podcast release in batches, and batch notifications for those podcasts:

phpCopy code
use App\Jobs\FlushPodcastCache;
use App\Jobs\ReleasePodcast;
use App\Jobs\SendPodcastReleaseNotification;
use Illuminate\Support\Facades\Bus;
  Bus::chain([
new FlushPodcastCache,
Bus::batch([
new ReleasePodcast(1),
new ReleasePodcast(2),
]),
Bus::batch([
new SendPodcastReleaseNotification(1),
new SendPodcastReleaseNotification(2),
]),
])->dispatch();

String timestamps are now handled by Sleep::until()

James Hulse contributed the functionality enabling the passing of a timestamp string to Sleep::until(), ensuring that the value remains numeric:

phpCopy code
Sleep::until("1699411804");

Introducing support for the Sec-Purpose header

@nanos contributed support for the Sec-Purpose header when utilizing the $request->prefetch() method:

"While most User Agents set Purpose: prefetch in prefetch requests, Firefox uses Sec-Purpose: prefetch in the latest version, as described in the above MDN article. This means that calling the ->prefetch() method on the request will return false for requests sent via the Firefox browser, regardless of prefetch status".

These are the updates made to Laravel web development. If you need quality services to create an effective, modern, advanced online shop leave your requests. Laravel web development from Devnrise team allows you to solve business problems on the web. We create large portals, develop and promote them.

Our Blog

How ChatGPT Is Transforming SEO and Digital Marketing

ChatGPT and SEO have become integral to modern digital promotion. We are witnessing how artificial intelligence is reshaping the way content is created and how businesses interact with their audiences. However, search engines still evaluate not the tool itself, but the quality of the final output. The key factor remains the value of content for the user. AI enables faster content creation, idea generation, and adaptation of materials to audience search intent. This significantly streamlines workflows and accelerates the launch of new pages.

View More

How to Choose Low-Frequency Keywords and Why They Matter

Finding low-frequency keywords (LF keywords) is a mandatory component of search engine optimization (SEO). It makes it possible to attract targeted traffic to a website and improve its positions in search engines. Unlike high-frequency keywords aimed at a broad audience, low-frequency keywords allow you to respond more effectively to the needs of specific users. How can you identify such keywords correctly, and why is this important?

View More

How to Promote a Website Without Links: Methods of Boosting a Site Without Buying Backlinks

In SEO, it is widely believed that a website needs incoming links to grow and rank high in search engines. However, promotion without them is also possible — and can be just as effective. Let’s explore methods of promoting a website without purchasing links and ways to improve its visibility in search engines.

View More

Let's build an amazing project

Please fill in this short form and we will be in touch with you soon
FOR ANY QUESTIONS
sales@devnrise.com
VISIT US
Head Office in Latvia: Brivibas Street 137B, Riga, Latvia
United Kingdom: Office 2801, 182-184 High Street North, East Ham, London E6 2JA
whatsapp