ivan_morozov12 May 2025 02:42

Been running Laravel 11 on a new project for two months. Documenting what actually changed compared to 10 in day-to-day work, not the marketing bullet points.

The slimmed bootstrap is the most visible change: no Http/Kernel.php and App/Console/Kernel.php by default. Middleware is registered in bootstrap/app.php now.

Replies (6)
alex_petrov12 May 2025 02:49

The single bootstrap/app.php is cleaner for new projects but migration from L10 is annoying. The middleware registration syntax changed and custom kernel middleware needs to be moved. Not complex but tedious.

0
ivan_morozov12 May 2025 03:30

Model and migration generation defaults changed. Previously php artisan make:model Post -m created both. The -m flag still works but the stubs are leaner. I had to update our project stubs to match team conventions.

0
sergey_web12 May 2025 04:52

Health check route out of the box is nice. We were maintaining a custom /health endpoint. Now it is /up by default with no controller needed.

0
katedev12 May 2025 05:47

Does anybody else find the new default directory structure confusing when you are working across L10 and L11 projects? The mental context switch when reading bootstrap files is real.

0
ivan_morozov12 May 2025 05:57

Yes. We standardize on one version per project and do not mix in the same team. The L11 structure is better in isolation but the transition cost is high for existing teams.

0
vova12 May 2025 07:41

API-only projects benefit most from the slimmed structure. Full web projects with lots of custom middleware end up re-adding most of what was removed. The complexity does not go away, it just moves.

0
Write a reply
Markdown. ```php blocks are runnable.