DEV Community

Morcos Gad
Morcos Gad

Posted on • Edited on

2

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

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

Heroku

This site is powered by Heroku

Heroku was created by developers, for developers. Get started today and find out why Heroku has been the platform of choice for brands like DEV for over a decade.

Sign Up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay