michaeljhopkins / SlackAgainstHumanity

A laravel 5 package for play Cards Against Humanity in your Slack channel
http://michaeljhopkins.github.io/SlackAgainstHumanity
73 stars 10 forks source link

Cannot locate migrations path on vendor:publish #1

Open jwebbed opened 9 years ago

jwebbed commented 9 years ago

This is what happens what I run the following command

$ php artisan vendor:publish Can't locate path: </var/www/laravel/vendor/hopkins/slack-against-humanity/src/Providers/../Database/migrationscreate_cards_table.php> Can't locate path: </var/www/laravel/vendor/hopkins/slack-against-humanity/src/Providers/../Database/migrationscreate_players_table.php> Publishing Complete!

I'm not all that familiar with laravel but this appears to be a bug.

R-K-H commented 8 years ago

Yea it's the migrationscreate

You need to ad a trailing slash to the file name and make it migration/create_players_table.php and cards table.

tricksunga commented 8 years ago

You need to edit the file: vendor/hopkins/slack-against-humanity/src/Providers/SahServiceProvider.php

Lines 12 and 13: Change this $cardsMigration = __DIR__.'/../Database/migrations'.$createCardsTable; $playersMigration = __DIR__.'/../Database/migrations'.$createPlayersTable;

to this $cardsMigration = __DIR__.'/../Database/migrations/'.$createCardsTable; $playersMigration = __DIR__.'/../Database/migrations/'.$createPlayersTable;