nnjeim / world

A Laravel package which provides a list of the countries, states, cities, currencies, timezones and languages.
MIT License
761 stars 104 forks source link

cannot publish tables #98

Open henry-ht opened 3 days ago

henry-ht commented 3 days ago

The tables cannot be published in the project to relate the data, it is not possible to set a date for the migration file names.

nnjeim commented 3 days ago

@henry-ht can you please share more details? the error you are getting and which version of laravel you are using? Are you upgrading for an earlier version? or is it a fresh install? try follow these steps


php artisan vendor:publish --tag=world

php artisan migrate

php artisan db:seed --class=WorldSeeder
henry-ht commented 1 day ago

@henry-ht can you please share more details? the error you are getting and which version of laravel you are using? Are you upgrading for an earlier version? or is it a fresh install? try follow these steps

php artisan vendor:publish --tag=world

php artisan migrate

php artisan db:seed --class=WorldSeeder

more than an error, it is a problem to be able to add it to an existing project. for example, as the tables are always created at the end, it is impossible for me to establish a relationship with the user table

nnjeim commented 1 day ago

@henry-ht i don't fully understand the problem but for custom implementation i would suggest you clone the repository, and many copy and adapt the code in order for you to create a relationship with users which is not supported by the package itself