vanilophp / cart

Cart Module for Vanilo (or any Laravel app)
https://vanilo.io
MIT License
50 stars 17 forks source link

Resources not being published #3

Closed danishjamil closed 6 years ago

danishjamil commented 6 years ago

Hi

The migrations and config file is not published when running php artisan vendor:publish when only this package is being installed instead of whole framework.

fulopattila122 commented 6 years ago

Did you install Concord before?

fulopattila122 commented 6 years ago

Ok, I probably know what's wrong. Concord was installed along with the cart package, you just have to add the cart module to it. This part hasn't yet been added to docs (only to framework installation). I add this part shortly to the doc and will post it here as well.

fulopattila122 commented 6 years ago

Thanks for the feedback, this was definitely incompletely documented. I've updated the readme with installation instructions for standalone usage.

Basically what you need to do is to run these:

  1. php artisan vendor:publish --provider=Konekt\Concord\ConcordServiceProvider
  2. Add Vanilo\Cart\Providers\ModuleServiceProvider::class to modules in config/concord.php

Now the migrations are registered so you can run php artisan migrate.