kdbz/kenya-county

A laravel package that creates and seeds Kenya's county,subcounty and wards lookup tables to a MySQL database

v1.0.5 2022-10-26 15:05 UTC

This package is auto-updated.

Last update: 2024-04-30 00:43:15 UTC


README

A laravel package that creates and seeds Kenya's 🇰🇪 county,subcounty and wards lookup tables to a MySQL database.

DB Structure

DB Schema

Installation

Use the package manager composer to install KenyaCounty within your laravel project.

$ cd YOUR_LARAVEL_PROJECT_PATH

$ composer require kdbz/kenya-county

Configuration

Publish the package configuration

$ php artisan vendor:publish --tag=kenyacounty-config

Publish the database migration files

$ php artisan vendor:publish --tag=kenyacounty-migrations

Publish the database seeder file

$ php artisan vendor:publish --tag=kenyacounty-seeders

Usage

Migrate the database

$ php artisan migrate

Seed the database

$ php artisan db:seed --class=KenyaCountySeeder

Acknowledgements

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT