bumbummen99 / LaravelShoppingcart

A simple shopping cart implementation for Laravel
MIT License
507 stars 235 forks source link

vendor:publish migrations not working for me #8

Closed benstinton closed 5 years ago

benstinton commented 5 years ago
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 commented 5 years ago
  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 commented 5 years ago

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.