lcjury/administrative

Administrative provides an easy way to scaffold political administrative division (like, region, provinces, communes) to your app.

0.0.0 2016-04-23 03:01 UTC

This package is not auto-updated.

Last update: 2024-04-27 16:58:08 UTC


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)