In this release I found two new features and a lot of other fixes and additions, so I wanted to share with you guys
- Added a pipe() method to the Process layer https://github.com/laravel/framework/pull/46527
method for the Process layer. This method will run commands in sequence and pass the output of the previous command to the input of the next one,
This can be handy when you need to chain the result of a group of commands
$pipe = Process::pipe(function ($pipe) {
$pipe->command('cat test.txt'),
$pipe->command('grep -i "foo"'),
});
$pipe->run()->output(); // "foo"
- Validator setValue() method https://github.com/laravel/framework/pull/46716
method in the Validator class to set the value of a given attribute. The author of the PR gave this description for the need for this method
// with this PR:
$this->validator->setValue($attribute, $value);
// previously: very slow!
Arr::set($this->data, $attribute, $value);
$this->validator->setData($this->data);
I hope you enjoyed with me and to learn more about this release visit the sources and search more. I adore you who search for everything new.
Source :- https://laravel-news.com/laravel-10-7-0
Source :- https://www.youtube.com/watch?v=JP4xBO26eSQ
Top comments (0)