Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vendor:publish migrations not working for me #8

Closed
benstinton opened this issue May 8, 2019 · 2 comments
Closed

vendor:publish migrations not working for me #8

benstinton opened this issue May 8, 2019 · 2 comments

Comments

@benstinton
Copy link

php artisan vendor:publish --provider="Gloudemans\Shoppingcart\ShoppingcartServiceProvider" --tag="migrations"

didn't work

php artisan vendor:publish --provider="Gloudemans\Shoppingcart\ShoppingcartServiceProvider"

did.
Is it due to missing groups in 2nd publishes() method in ShoppingcartServiceProvider?

Thanks for the bundle

@Davpyu
Copy link

Davpyu commented May 27, 2019

  1. open file on vendor/bumbummen99/shoppingcart/src/ShoppingcartServiceProvider.php
  2. Edit this line
    $this->publishes([ realpath(__DIR__.'/Database/migrations') => $this->app->databasePath().'/migrations', ]);
    to
    $this->publishes([ realpath(__DIR__.'/Database/migrations') => $this->app->databasePath().'/migrations', ], 'migrations');

@bumbummen99
Copy link
Owner

Thanks for pointing it out, here is the doc if someone is interested: https://laravel.com/docs/5.8/packages#publishing-file-groups

Going to update it.

bumbummen99 added a commit that referenced this issue Jun 26, 2019
#8
Added missing publish group parameter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants