lcjury/administrative
Composer 安装命令:
composer require lcjury/administrative
包简介
Administrative provides an easy way to scaffold political administrative division (like, region, provinces, communes) to your app.
README 文档
README
This package provide a command to create the neccesary to work with political administrative division on your database.
The make:administrative command will provide you with Region, Province and Commune models, the migrations for those models and seeders for some countries
Installation
To get the last version of Administrative use
composer require lcjury/administrative
or add to your composer.json file
"require": {
"lcjury/administrative": "^0.0.0"
},
once installed you should add the AdministrativeServiceProvider to your config/app.php file
'providers' => [
Lcjury\Administrative\AdministrativeServiceProvider::class
];
#Usage
Just run artisan make:administrative and then add $this->call(PoliticalTablesSeeder::class); to the DatabaseSeeder file and run artisan db:seed
#Supported Countries
- Chile (Regions, Provinces and Communes using the data from subdere.gov with the update from 13/09/2011)
统计信息
- 总下载量: 52
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-23