fb

Laravel 10.7 Released

Home Blog Laravel 10.7 Released

Laravel 10.7 Released

Laravel 10.7 Released

Laravel 10.7 PHP has been presented to the general public - Laravel framework has created a new version 10.7. It contains improvements and new functionality introduced by Laravel programmers to the Laravel world.

The bright and prominent element is the pipe() method at the process level. It activates commands sequentially, and passes the analytics from the previously executed command to the start of the next one. The setValue() method in the Validator class is also an important feature. It makes it possible to define the value of this element. The package includes fixes for various issues and bugs. They were previously reported by the Laravel community.

Let's dwell on the functionality and changes in Laravel 10.7. In the Process layer we added the pipe() method. It ensures that commands are run sequentially and passes the analytics from a previously executed command to activate a subsequent command. This method will run commands sequentially and pass the output of the previous command to the input of the next command:

$pipe = Process::pipe(function ($pipe)
$pipe->command('cat test.txt'),

$pipe->command('grep -i "foo"'),
} );
$pipe->run()->output(); // "foo"

This function is useful when it is necessary to bundle the results of a group of teams.

Validator's setValue() method

Joel Harkes presented the setValue() method in the Validator class to determine the value of this attribute. The PR developer gave this rationale for the relevance of this technique:

To do package programming, I would like to be able to override the data, to ensure the security of the type check. After making edits there is no way to effectively override an already implemented value. I could call setData(), but this action would provide a complete reboot of the normals themselves, and would cause them to slow down dramatically.

// with this PR:
$this->validator->setValue($attribute, $value);

// previously: very slow!
Arr::set($this->data, $attribute, $value);
$this->validator->setData($this->data);

Control of recalled event listeners in testing

Luke Kuzmisz has made his own contribution to being able to approve summoned event listeners. Previously, this had not been possible:

Event::assertListening(
StationAssistanceRequested::class,
CreateDemandWorkOrder::class, // has __invoke() method
);

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