Skip to content

refactor(core): upgrade to Laravel 12#8969

Closed
andrasbacsai wants to merge 1 commit intonextfrom
laravel-upgrade-feasibility
Closed

refactor(core): upgrade to Laravel 12#8969
andrasbacsai wants to merge 1 commit intonextfrom
laravel-upgrade-feasibility

Conversation

@andrasbacsai
Copy link
Member

Summary

  • Migrate from legacy service providers and kernel classes to Laravel 11's unified bootstrap/app.php configuration
  • Remove RouteServiceProvider, BroadcastServiceProvider, ConfigurationServiceProvider, Http\Kernel, and Console\Kernel
  • Consolidate schedule configuration into new ScheduleConfiguration class
  • Simplify entry points (artisan, public/index.php) using new bootstrap conventions
  • Replace RouteServiceProvider::HOME references with literal '/' redirect targets
  • Move middleware, exception handling, and rate limiting configuration to centralized bootstrap setup
  • Update exception handler tests to work with new exception handling API

Breaking Changes

  • RouteServiceProvider class no longer exists — replace any references to RouteServiceProvider::HOME with '/'
  • Exception handler is now configured via bootstrap/app.php closures instead of App\Exceptions\Handler class
  • Middleware configuration is now declarative in bootstrap/app.php rather than via Http\Kernel
  • Console schedule configuration now uses ScheduleConfiguration class with explicit configure() method
  • Broadcasting and rate limiter configuration moved from service providers to AppServiceProvider

Migrate to Laravel 11's fluent application configuration API. Key changes:

- Move HTTP and console kernel configuration to bootstrap/app.php
- Consolidate BroadcastServiceProvider, ConfigurationServiceProvider, and RouteServiceProvider into AppServiceProvider
- Extract schedule configuration into dedicated ScheduleConfiguration class
- Remove exception handler class; define exception handling in bootstrap/app.php
- Remove middleware kernel class; define middleware in bootstrap/app.php via withMiddleware()
- Simplify artisan and public/index.php entry points
- Replace RouteServiceProvider::HOME constant with hardcoded '/' redirects
@andrasbacsai andrasbacsai changed the title refactor(core): upgrade to Laravel 11 refactor(core): upgrade to Laravel 12 Mar 13, 2026
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.

1 participant