A laravel package that creates and seeds Kenya's 🇰🇪 county,subcounty and wards lookup tables to a MySQL database.
Use the package manager composer to install KenyaCounty within your laravel project.
$ cd YOUR_LARAVEL_PROJECT_PATH
$ composer require kdbz/kenya-county
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
Migrate the database
$ php artisan migrate
Seed the database
$ php artisan db:seed --class=KenyaCountySeeder
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.