lcjury / administrative
Administrative provides an easy way to scaffold political administrative division (like, region, provinces, communes) to your app.
Installs: 51
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Type:laravel-package
Requires
- php: >=5.5.9
This package is not auto-updated.
Last update: 2025-02-01 20:37:15 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)