Reputation: 83
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
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