-
Notifications
You must be signed in to change notification settings - Fork 11.7k
Open
Labels
Description
Laravel Version
12.36.1
PHP Version
8.3.27
Database Driver & Version
No response
Description
The pre-package-uninstall Composer event triggers Illuminate\Foundation\ComposerScripts::prePackageUninstall which boots the application. The boot fails if a service provider (in app/Providers/) is extending a service provider of a package which is not installed at the moment.
The error message:
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 33 installs, 0 updates, 2 removals
> Illuminate\Foundation\ComposerScripts::prePackageUninstallIn AdminPanelProvider.php line 22:
[Error]
Class "Filament\PanelProvider" not foundException trace:
[...]
Steps To Reproduce
- Create
branch-afrommainand switch to it - Add a Composer package that includes a service provider you should extend within your app:
(This creates
composer require filament/filament:"^4.0" php artisan filament:install --panelsapp/Providers/Filament/AdminPanelProvider.phpwhich extends\Filament\PanelProviderand adds it tobootstrap/providers.php.) - Create
branch-bfrommainand switch to it - Install any Composer package (e.g.
composer r --dev barryvdh/laravel-debugbar) - Switch to
branch-aand runcomposer install
artengin, ferrl and Tigla