Support the ongoing development of Laravel.io →
Packages
Last updated 1 year ago.
0

I'm having exactly the same problem but I'm only trying to publish migrations. Weirdly if I remove one service provider it will publish migrations for a different package, but only ever one package. Any solutions yet?

0

I have a "fix" for it by basically adding the service provider name to the tag to make it unique like so:

$this->publishes([DIR . '/database/migrations' => base_path('database/migrations')], 'myPackageName:migrations');

and then i can call the following artisan command to publish the package migrations:

php artisan vendor:publish --provider="Vendor\Package\PackageServiceProvider" --tag="myPackageName:migrations"

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.