My Three Favorite Features of Laravel 11

Darrin Deal -

Laravel 11 was released yesterday. With it comes new features and a new package called Laravel Reverb (More on that next week). In this article I want to share my three favorite features that are new in this release.

The Streamlined Application Structure

The most noticeable and most debated change in this release is the streamlined application structure. When you create a Laravel 11 application you are going to find that there are less files provided by default. I really am happy with what the team came up with for the new application structure.

I remember when I started in Laravel development. I would get so overwhelmed I would have to stop coding. After seeing the new structure in Laravel 11 I think new Laravel developers are going to excel in getting started with the framework.

Framework Provided Health Route

Right from install we now have an health route. To access this route you can go to /up. This croute can be used for uptime monitoring or as the health route for your load balancing.

You can configure the path in the app config and you can listen for a `Illuminate\Foundation\Events\DiagnosingHealth` event to customize what this route checks. I think that is super powerful.

The Once Helper

Finally, the once helper makes it way into the framework. When you return a once result the value is cached and will only return the value of the first run. You can also use this helper in an object and that response will be tied to the object it is returned from.

Where to Go From Here?

These are my three favorite things in Laravel 11. What are yours? Let me know on X.