DEV Community

Morcos Gad
Morcos Gad

Posted on • Edited on

Great Things Laravel 10.9 Released

In this release I found two great features and other things that I want to share with you to use in our next projects

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'), ]); 
Enter fullscreen mode Exit fullscreen mode
  • 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 
Enter fullscreen mode Exit fullscreen mode

Image description

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)