nWidart / laravel-modules

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

Repository service provider not found #1069

Closed Waqaralipk closed 4 years ago

Waqaralipk commented 4 years ago

Hi @nikolas, I have installed laravel-modules in my project. Everything is working fine except for the issue which is highlighted below. I have implemented a repository layer inside of each module and loaded it in the app.php file. whenever I use to switch another branch of the git and execute the command composer dump-autoload I am getting the error message which is attached in Screenshot, don't know from where it gets the injected provided. I have deleted the vendor folder as well but the error remains as it was. :( Can you please help me out maybe I am doing something wrong? image_2020_09_26T12_50_56_244Z

nWidart commented 4 years ago

hi,

Did you add the required lines in the composer json file?

Waqaralipk commented 4 years ago

Hi Nicolas, Sorry I didn't see your email. nope, I just added in my app.php file where providers are loading.

On Sat, Oct 3, 2020 at 7:59 PM Nicolas Widart notifications@github.com wrote:

hi,

Did you add the required lines in the composer json file?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nWidart/laravel-modules/issues/1069#issuecomment-703116684, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJK6KXHKH5ZHBZYRQLO5IBLSI435XANCNFSM4R24MI5Q .

-- Best Regards :

Waqar Ali. Software Engineer at The Vision spark.

Waqaralipk commented 4 years ago

hi,

Did you add the required lines in the composer json file?

Hello,

Nope, I had added in app.php file.

nWidart commented 4 years ago

You also need to have that provider in your module.json file.