Home>Article>PHP Framework> Laravel 8.17 is released!
The following is an introduction to Laravel 8.17 is released! 8.17 from theLaravel 8.17 is released! Frameworktutorial column, I hope it will be helpful to friends in need!
Yesterday the Laravel 8.17 is released! team released version 8.17, which introduced transaction-aware code execution, added new dump() and dd() methods to the request object, and 8.x Latest changes to the branch:
Mohamed Said contributed a transaction manager class for recording transactions, commits and rollbacks. This feature includes a transaction-aware handler that executes code after (and only after the transaction commits)
DB::afterCommit(function () { // 仅在提交事务后执行。 // 如果事务回滚则丢弃。 Mail::send(...); });
The transaction-aware manager is for subsequent listeners, jobs, mail, etc. by default The foundation is laid for using aware transactions.
Trajche Nakov contributeddump()
anddd() to the Illuminate Request class
Method:
$request->dd(); // 只打印数组中的key $request->dd(['name', 'age']); // 将它们作为单独的参数传递 $request->dd('name', 'age'); // 在运行验证之前快速检查请求参数 $request->dd()->validate([ 'name' => 'required' ]);
You can see the full list of new features and updates and the differences between 8.16.0 and 8.17.0 on GitHub. The following release notes are from the changelog:
\ n
in PendingCommand (#35409)Illuminate\Collections\Collection::sortBy()
(307f6fb)Original address: https://laravel-news.com/laravel-8-17-0
Translation address: https://learnku.com/laravel/t/53055
The above is the detailed content of Laravel 8.17 is released!. For more information, please follow other related articles on the PHP Chinese website!