user10984218
user10984218

Reputation: 83

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.

Upvotes: 3

Views: 9511

Answers (2)

Sean
Sean

Reputation: 480

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"

Upvotes: 3

Pri Nce
Pri Nce

Reputation: 711

Try this out

php artisan vendor:publish --all

Upvotes: 1

Related Questions