A Laravel package to help developers seed Rwanda locations data (province, district, sector, cell, village) in Laravel applications.
Install this package as a dependency using Composer.
composer require --dev aimedidierm/ahantu
After installing the package, you can publish the configuration file to customize it according to your needs.
php artisan vendor:publish --provider="Ahantu\Locations\LocationsServiceProvider"
To create models, migrations, and seeders for the locations, run the following Artisan command:
php artisan ahantu:install
This command will generate the necessary files and directories:
- Models:
Province
,District
,Sector
,Cell
,Village
- Migrations: for creating the corresponding tables
- Seeders: for populating the tables with Rwanda location data
After generating the files, run the migrations and seeders to create and populate the tables in your database.
php artisan migrate
php artisan db:seed --class=LocationsSeeder
Contributions are welcome!
The aimedidierm/ahantu package is free and unencumbered software released into the public domain. Please see the MIT LICENSE for more information.