0
votes

How can I make PHP's artisan vendor:publish command to merge the new file with the existing file instead overwriting in Laravel? Or after a make:console merge, how can I use the vendor:publish command in it?

I ask because PHP's artisan vendor:publish --force overwrites packages view for a resource.

1

1 Answers

1
votes

php artisan don't publish files it already published it only look for new files (don't use --force). also you can use

php artisan vendor:publish --provider="Vendor\Providers\PackageServiceProvider" to specify package