Skip to content

Conversation

@PanchoDP
Copy link
Contributor

The commit improves middleware registration documentation for Laravel 11 and 12 by:

  1. Clearer guidance: Replaces "No middleware files" statement with specific instructions on where and how to register middlewares
  2. Practical information: Explicitly documents that middlewares are now registered declaratively in bootstrap/app.php using Application::configure()->withMiddleware(), not in Kernel.php
  3. Reduces migration confusion: Helps developers transitioning from Laravel 10 understand the architectural change in middleware registration
  4. Consistency: Applies the same documentation improvements to both Laravel 11 and 12 templates

@pushpak1300 pushpak1300 self-requested a review December 24, 2025 06:45
Signed-off-by: Pushpak Chhajed <pushpak1300@gmail.com>
@pushpak1300 pushpak1300 linked an issue Dec 24, 2025 that may be closed by this pull request
@taylorotwell taylorotwell merged commit 728b42e into laravel:main Jan 7, 2026
19 checks passed
@PanchoDP PanchoDP deleted the branch-fix-middleware-position branch January 8, 2026 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Location of the middleware

3 participants