扩展包地址:https://github.com/yupoxiong/region
支持 TP5.0. 和 TP5.1. 还有 TP6.0 ,搜索功能支持汉字,支持拼音,首字母搜索。
安装
第一步:安装扩展
Composer 运行扩展安装命令
composer require yupoxiong/region
第二步:创建数据表
复制vendor/yupoxiong/region/database/migrations目录下的数据库迁移文件到TP迁移目录(一般是 /database/migrations/ ),然后运行TP自带迁移命令创建表。
TP5.1 版本可以直接运行以下两个命令完成安装
php think region:publish
php think region:migrate
TP6.0 版本可以直接运行以下命令完成安装
php think region:migrate


