Reputation:
I am trying to install this package on my server after installing everything when I try to migrate with php artisan migrate
it tells me there is nothing to migrate. Also the migration table is not there. here is what I did:
php composer.phar require igaster/laravel_cities
change in providers app.php
Igaster\LaravelCities\GeoServiceProvider::class,
Ran this script
mkdir storage/geo
cd storage/geo
wget http://download.geonames.org/export/dump/allCountries.zip && unzip allCountries.zip && rm allCountries.zip
wget http://download.geonames.org/export/dump/hierarchy.zip && unzip hierarchy.zip && rm hierarchy.zip
Now when I run php artisan migrate
it tells me there is nothing to migrate
I am not sure if this is because I have php composer.phar
instead of composer
?
Upvotes: 1
Views: 4039
Reputation:
Try php artisan config:cache
then retype php artisan migrate
- Hope this helpfull...
Upvotes: 2
Reputation: 15616
Copy vendor/igaster/laravel_cities/src/migrations
folder contents to database\migrations
folder, then run php artisan migrate
. Sometimes publishing vendor resources doesn't work for me too and I dive into the source of the package then to make them work.
Upvotes: 0
Reputation: 2333
Try running:
php artisan vendor:publish --provider="Igaster\LaravelCities\GeoServiceProvider"
And then run the migration
php artisan migrate
Upvotes: 0
Reputation: 1279
php composer.phar is identical to composer so thats not the issue.
If migration file not showing you likely need to run
php artisan vendor:publish
Upvotes: 0