In this release I found two great features and other things that I want to share with you to use in our next projects
- Named Static Methods for Middleware https://github.com/laravel/framework/pull/46362
alternative more "PHPish" ways to define route middleware
Route::get('users', UserController::class) ->middleware([ Authenticate::class, // default. Authenticate::using('web'), // specify a guard. Authenticate::using('web', 'another'), // specify multiple guards. Authorize::using('store', Post::class), EnsureEmailIsVerified::class, // default. EnsureEmailIsVerified::redirectTo('route.name'), ]);
- New HTTP Status Assertions
three new HTTP status assertions for writing feature tests in Laravel
https://github.com/laravel/framework/pull/46841
$response->assertGone(); // 410 $response->assertInternalServerError(); // 500 $response->assertServiceUnavailable(); // 503
- Make rules method in FormRequest optional https://github.com/laravel/framework/pull/46846
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-9-0
Source :- https://www.youtube.com/watch?v=t_w3G2qsHic
Source :- https://www.youtube.com/watch?v=IkRXKRCPWeU
Source :- https://www.youtube.com/watch?v=B4p5thI_RjY
Source :- https://www.youtube.com/watch?v=nRojeQMA6R8
Top comments (0)