jeudi 29 septembre 2016

Laravel package file publishing with interaction or

Suppose a user calls vendor:publish without specifying any tags:

artisan vendor:publish --provider="Vendor\Package\PackageServiceProvider"

This will execute all of the providers publishes regardless of tags.

But some of my files are mutually exclusive versions of each other, only one should be published.

Can I somehow hide publishes from vendor:publish? Is it posssible that some files are only published if the tag is explicitly asked for instead of publishing everything if no tag is specified?

Is interactive publishing somehow possible? Something like this:

artisan vendor:publish --provider="Vendor\Package\PackageServiceProvider"
Do you need migrations? [Y|n]



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2cNKbu7
via IFTTT

Aucun commentaire:

Enregistrer un commentaire