diff --git a/.ai/laravel/11/core.blade.php b/.ai/laravel/11/core.blade.php index 250c831e..ca62b3bc 100644 --- a/.ai/laravel/11/core.blade.php +++ b/.ai/laravel/11/core.blade.php @@ -19,7 +19,8 @@ - Laravel 11 brought a new streamlined file structure which this project now uses. ### Laravel 11 Structure -- No middleware files in `app/Http/Middleware/`. +- In Laravel 11 and 12, middlewares are no longer registered in Kernel.php. +- Middlewares are configured declaratively in bootstrap/app.php using Application::configure()->withMiddleware() - `bootstrap/app.php` is the file to register middleware, exceptions, and routing files. - `bootstrap/providers.php` contains application specific service providers. - **No app\Console\Kernel.php** - use `bootstrap/app.php` or `routes/console.php` for console configuration. diff --git a/.ai/laravel/12/core.blade.php b/.ai/laravel/12/core.blade.php index a6f6b89d..c132685d 100644 --- a/.ai/laravel/12/core.blade.php +++ b/.ai/laravel/12/core.blade.php @@ -16,7 +16,8 @@ - Since Laravel 11, Laravel has a new streamlined file structure which this project uses. ### Laravel 12 Structure -- No middleware files in `app/Http/Middleware/`. +- In Laravel 11 and 12, middlewares are no longer registered in Kernel.php. +- Middlewares are configured declaratively in bootstrap/app.php using Application::configure()->withMiddleware() - `bootstrap/app.php` is the file to register middleware, exceptions, and routing files. - `bootstrap/providers.php` contains application specific service providers. - **No app\Console\Kernel.php** - use `bootstrap/app.php` or `routes/console.php` for console configuration.