ziad181 / database-of-countries-and-cities
This package contains a database of all countries and cities in 3 different languages: English, Arabic and French.
dev-master
2022-09-14 07:44 UTC
Requires
- php: >=7.3
- illuminate/support: >=7.3
This package is auto-updated.
Last update: 2024-04-14 11:17:22 UTC
README
This package contains a database of all countries and cities in 3 different languages: English, Arabic and French.
-
install the package
composer require ziad181/database-of-countries-and-cities
-
You can publish using the following command
php artisan vendor:publish --provider="Ziad181\DatabaseOfCountriesAndCities\CountriesServiceProvider"
- Export the tables to the database
php artisan migrate
- Open the DatabaseSeeder file and add the following code:
$this->call([ CountrySeeder::class, CitySeeder::class, ]);
- Export data to the database
php artisan db:seed