'Publish all contents of a Laravel package

I installed a Laravel package via composer and require some of the non-published controllers of it to be published (to be safely modified by me and still being able to run composer install without overwriting custom code). However, I wouldn't find any appropriate answers on Google.

Basically, php artisan vendor:publish publishes some of the files of the package but not all. Is there a way to modify what files vendor:publish publishes? As stated, I'll need some controllers of the vendor folder to be published.



Solution 1:[1]

You can pass in the package's provider class and tags for what you want to publish

php artisan vendor:publish --provider="Namespace\ProviderClass" --tag="config|lang"

Solution 2:[2]

Try this out

php artisan vendor:publish --all

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sean
Solution 2 Pri Nce