Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

A list of all countries, optimized for Laravel 5.8

License

Notifications You must be signed in to change notification settings

lwwcas/old-laravel-countries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

World Map

Packagist Version Open Issues License

Description

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.

Available Languages?

Language
English
Portuguese
Spanish
Italian

Requirements

Installation

  • 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

License

This software is released under The MIT License (MIT).

Contributing

Pull requests and issues are more than welcome.