nWidart / laravel-modules

Module Management In Laravel
https://docs.laravelmodules.com
MIT License
5.56k stars 969 forks source link

Class "Modules\Faq\Providers\FaqServiceProvider" not found #1869

Closed abodh-addweb closed 5 months ago

abodh-addweb commented 5 months ago

when i run php artisan module:make Faq i get same issue Class "Modules\Faq\Providers\FaqServiceProvider" not found

alikhansalmani commented 5 months ago

hi, are you run command composer du ? also check upgrade or Installation and Setup page.

inkomomutane commented 5 months ago

@abodh-addweb By default the module classes are not loaded automatically. You can autoload your modules by adding merge-plugin to the extra section:


 "extra": {
    "laravel": {
        "dont-discover": []
    },
    "merge-plugin": {
        "include": [
            "Modules/*/composer.json"
        ]
    }
}, 

After:

composer du

I think this issue should be closed.

abodh-addweb commented 5 months ago

thank you so much it's work