empari / geo
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-09-29 03:20:45 UTC
README
Laravel 的国家、州和城市助手(仅限巴西)
安装
Composer
执行以下命令以获取软件包的最新版本:
composer require empari/geo
Laravel
在你的 config/app.php 文件的 providers 数组末尾添加 Empari\Geo\GeoServiceProvider::class
'providers' => [ ... Empari\Geo\GeoServiceProvider::class, ],
发布配置
php artisan vendor:publish --provider "Empari/Geo/GeoServiceProvider"
迁移新表
php artisan migrate
种子表
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"