filament-modules icon indicating copy to clipboard operation
filament-modules copied to clipboard

[Bug]: Class "Modules\MyModule\Providers\MyModuleServiceProvider" not found

Open bacipher opened this issue 1 year ago • 0 comments

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

bacipher avatar Nov 15 '24 09:11 bacipher