filament-modules
filament-modules copied to clipboard
[Bug]: Class "Modules\MyModule\Providers\MyModuleServiceProvider" not found
What happened?
When creating a module, the modules' is not found since the modules are not autoloaded
How to reproduce the bug
Create new module
php artisan module:make MyModule
Install module
php artisan module:filament:install MyModule
Package Version
4.0
PHP Version
8.2
Laravel Version
11.0
Which operating systems does with happen with?
Linux
Notes
Solution
Visit nwidarts Laravel Modules to setup autoloading
"extra": {
"laravel": {
"dont-discover": []
},
"merge-plugin": {
"include": [
"Modules/*/composer.json"
]
}
},
A better solution can be included in the next release