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

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay