This package gives you a list of countries, and puts them in the database, all countries can be searched by slug, iso_alpha_2, iso_alpha_3, iso_numeric or international_phone, and of course by its own name.
Language |
---|
English |
Portuguese |
Spanish |
Italian |
- Laravel >= 5.7
- PHP >= 7
- dimsav/laravel-translatable
- Require it with Composer:
composer require lwwcas/laravel-countries
- Run the command
composer dump-autoload
- Paste this line into database\seeds\DatabaseSeeder.php in run function
$this->call(CountriesDatabaseSeeder::class);
- Import class CountriesDatabaseSeeder
use Lwwcas\LaravelCountries\Database\Seeders\CountriesDatabaseSeeder;
- Run migrations
php artisan migrate
- OR run seeds
php artisan db:seed
- OR run migrations and seeds
php artisan migrate --seed
This software is released under The MIT License (MIT).
Pull requests and issues are more than welcome.