97
GitHub - cblink/region: laravel 省市区联动数据生成
source link: https://github.com/cblink/region
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
region
省市区联动数据
安装
composer require cblink/region
在 app.php 中加入服务提供者
/*
* Package Service Providers...
*/
Cblink\Region\RegionServiceProvider::class,
生成 migration 文件
php artisan vendor:publish --provider="Cblink\Region\RegionServiceProvider"
在 2018_01_01_000000_create_regions_table.php
可以根据自身需求与结构修改表名或字段名
执行迁移
php artisan migrate
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK