My service provider is not published during install process #121
-
I am using hasInstallCommand and call ->copyAndRegisterServiceProviderInApp() inside the callback function , but my ServiceProvider isn't published at all. My config file and the migrations are published, but not my Provider. What's wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I was missing the directive ->publishesServiceProvider('MyProviderName') I added it to my PackageServiceProvider and now I gets published. Sorry, my bad. Maybe I did not see that in the documentation.
both lines (publishesServiceProvider and copyAndRegisterServiceProviderInApp) are required to copy the Provider and registering it in config/app.php. |
Beta Was this translation helpful? Give feedback.
I was missing the directive ->publishesServiceProvider('MyProviderName')
I added it to my PackageServiceProvider and now I gets published. Sorry, my bad. Maybe I did not see that in the documentation.
both lines (publishesServiceProvider and copyAndRegisterServiceProviderInApp) are required to copy the Provider and registering it in config/app.php.