venkataadithan liked a comment+100 XP
1mo ago
The addition of an abstract 'BasePanelProvider' is of great value in code maintainability! Thanks for sharing that great tip!
venkataadithan liked a comment+100 XP
2mos ago
So the provider tag is for the full service provider. So let's say your service provider provides some config files like your example, but it also provides some migrations for example. So when you run vendor:publish --provider=SomeProvider it will do all of the publishes in that service provider.
When you use tag you can group things together. For example a package can have multiple migration files or multiple config files. Or maybe even some optional files that give extra features. When you tag them you don't have to publish them right away. So when you use the tag option you only publish what belongs to that tag group.
When you run vendor:publish without provider or tag it will loop over all service providers and return that for you!
Let me know if this is clear for you!