Import states > cities > neighborhood from specific country.
You can install the package via composer:
composer require abr4xas/location
You can publish and run the migrations with:
php artisan vendor:publish --provider="Abr4xas\Location\LocationServiceProvider" --tag="location-migrations"
php artisan migrate
php artisan import:states-from AR <token>
php artisan import:cities <token>
php artisan import:neighborhoods <token>
NOTE: You need to generate an access token. You can do that here.
country list:
country: AR,
name: Argentina,
country: BO,
name: Bolivia,
country: BR,
name: Brasil,
country: CL,
name: Chile,
country: CN,
name: China,
country: CO,
name: Colombia,
country: CR,
name: Costa Rica,
country: CBT,
name: Cross Border Trade,
country: EC,
name: Ecuador,
country: SV,
name: El Salvador,
country: GT,
name: Guatemala,
country: HN,
name: Honduras,
country: MX,
name: Mexico,
country: NI,
name: Nicaragua,
country: PA,
name: Panamá,
country: PY,
name: Paraguay,
country: PE,
name: Peru,
country: PT,
name: Portugal,
country: PR,
name: Puerto Rico,
country: GB,
name: Reino Unido,
country: DO,
name: República Dominicana,
country: UY,
name: Uruguay,
country: VE,
name: Venezuela,
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
I'm using Mercado Libre API for this package. Kudos to all MeLi devs <3
The MIT License (MIT). Please see License File for more information.