You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When performing a dump-autoload and have already registered the pluggin in your panel. When you try to do a install the plugin with: php artisan module:filament:install MyModule, you get this error.
How to reproduce the bug
Add the package and configure
composer require coolsam/modules
php artisan vendor:publish --tag="modules-config"
Register the plugin
// e.g. in App\Providers\Filament\AdminPanelProvider.php
use Filament\Plugin\ModulesPlugin;
public function panel(Panel $panel): Panel
{
return $panel
...
->plugin(ModulesPlugin::make());
}
Create a Module
php artisan module:make MyModule
Install the Module
php artisan module:filament:install MyModule
Package Version
4.0
PHP Version
8.0
Laravel Version
11.9
Which operating systems does with happen with?
Linux
Notes
Suggested Solution
When registering the plugin in your panel, one should use the package namespace rather than filament namespace
// e.g. in App\Providers\Filament\AdminPanelProvider.php
use Coolsam\Modules\ModulesPlugin;
public function panel(Panel $panel): Panel
{
return $panel
...
->plugin(ModulesPlugin::make());
}
The text was updated successfully, but these errors were encountered:
@bacipher I was facing the same issue. Upon investigation I have found that I was using "coolsam/modules": "4" in my composer.json. I updated it to "coolsam/modules": "^v4.0.6". And it works.
@bacipher I was facing the same issue. Upon investigation I have found that I was using "coolsam/modules": "4" in my composer.json. I updated it to "coolsam/modules": "^v4.0.6". And it works.
What happened?
When performing a dump-autoload and have already registered the pluggin in your panel. When you try to do a install the plugin with:
php artisan module:filament:install MyModule
, you get this error.How to reproduce the bug
Add the package and configure
composer require coolsam/modules
php artisan vendor:publish --tag="modules-config"
Register the plugin
Create a Module
php artisan module:make MyModule
Install the Module
php artisan module:filament:install MyModule
Package Version
4.0
PHP Version
8.0
Laravel Version
11.9
Which operating systems does with happen with?
Linux
Notes
Suggested Solution
When registering the plugin in your panel, one should use the package namespace rather than filament namespace
The text was updated successfully, but these errors were encountered: