Hi, I'm Joe

Founder and CTO of ubisend. Proud Father of a beautiful little girl, developer, occasional globetrotter and, time permitting, a keen runner and cyclist.

Publishing resources in Laravel 5.5

I spotted a cool new feature coming in Laravel 5.5, which is going to make working with third-party packages that little bit easier. When publishing third-party resources using php artisan vendor:publish, you will be able to choose which package you would like to publish.

Currently, running the command will publish all resources from every package you have installed unless you provide the --provider="Path\To\Package\ServiceProvider" or --tag="package-tag" flag. This is perfectly fine, but unless the package in use is well documented, it can be tricky to determine which service provider or tag to supply.

Running php artisan vendor:publish in Laravel 5.5 will provide you with a prompt asking you to select which resources you would like to publish from a list of all available providers and tags.

Of course, if you wish to publish everything in one go, either use the --all flag or select option 0 from the list. This is a great community edition from Trevor Fitzgerald.

I hope you enjoyed reading this. If you have any questions or comments, drop me a message