Skip to content

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

@bacipher

Description

@bacipher

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions