DEV Community

Morcos Gad
Morcos Gad

Posted on • Updated 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)
        Authenticate::class, // default.
        Authenticate::using('web'), // specify a guard.
        Authenticate::using('web', 'another'), // specify multiple guards.

        Authorize::using('store', Post::class),

        EnsureEmailIsVerified::class, // default.
Enter fullscreen mode Exit fullscreen mode
  • New HTTP Status Assertions

three new HTTP status assertions for writing feature tests in Laravel

$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 :-
Source :-
Source :-
Source :-
Source :-

Top comments (0)