Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bacipher opened this issue Nov 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@bacipher
Copy link

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 bacipher added the bug Something isn't working label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant