empari / geo
Countries, States and Cities helper for Laravel.
5.8.0
2019-06-24 20:22 UTC
Requires
- php: ^7.1.3
- empari/laravel-support: 5.8.*
- laravel/framework: 5.8.*
- league/fractal: ^0
- prettus/l5-repository: ^2.6
Requires (Dev)
- phpunit/phpunit: ~5.7
This package is not auto-updated.
Last update: 2024-12-22 04:58:21 UTC
README
Countries, States and Cities helper for Laravel (only Brazil)
Installation
Composer
Execute the following command to get the latest version of the package:
composer require empari/geo
Laravel
In your config/app.php
add Empari\Geo\GeoServiceProvider::class
to the end of the providers
array:
'providers' => [ ... Empari\Geo\GeoServiceProvider::class, ],
Publish Configuration
php artisan vendor:publish --provider "Empari/Geo/GeoServiceProvider"
Migrate the new tables
php artisan migrate
Seeder Tables
php artisan db:seed --class="Empari\Geo\Database\Seeds\CountryTableSeeder" php artisan db:seed --class="Empari\Geo\Database\Seeds\StateTableSeeder" php artisan db:seed --class="Empari\Geo\Database\Seeds\CityTableSeeder"