This patch release fixes a v4.19.4 regression: runtime macros called through a Laravel facade reported UndefinedMagicMethod in apps that set their own aliases list in config/app.php.
Fixes
- Resolve facade macros and facade-aware type handlers when
config/app.phpdefines its ownaliaseslist instead of extendingFacade::defaultAliases()(#2275)
// config/app.php: 'aliases' => ['Vite' => \Illuminate\Support\Facades\Vite::class]
// a service provider: Route::macro('localized', [LocalizedRouteMacro::class, 'localized']);
Route::localized(static function (): void { /* ... */ });
-// UndefinedMagicMethod: Magic method Illuminate\Support\Facades\Route::localized does not exist
+// resolves to the registered macroFull Changelog: v4.19.4...v4.19.5