Skip to content

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

License

Notifications You must be signed in to change notification settings

kdbz/kenya-county

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KenyaCounty

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages