uyoobonga / statecity
This package will load all states in Nigeria and their respective Cities
2.0.1
2020-06-12 19:29 UTC
This package is auto-updated.
Last update: 2025-04-13 06:04:58 UTC
README
This laravel package load all states in Nigeria and their respective Cities
Requirements
PHP ^7.0
Laravel ^7.0
Reference elements
Your request will content the following reference name:
state
: attribute name use in select field.code
: attribute name use in getting 3 characters use for each state.city
: attribute name use in select field for LGA.
Example:
- Single Row
- Double Row Select
Setup
composer require
composer require uyoobonga/statecity
- Run Migrations
php artisan migrate
- Seed database
php artisan db:seed --class=Uyoobonga\\StateCity\\database\\seeds\\StateCityTableSeeder
- Note: if you want to have access to the view, use the syntax below to publish it.
php artisan vendor:publish --tag=statecity-views
Usage
Include any of the blade syntax.
- Double row
@include('statecity::double_row_select')
- Single row
@include('statecity::single_row_select')
TODO
- Symfony support
- Django support
- vuejs support
- Test! Test!! Test!!!
Contributions
If you want to contribute to this library, fork the repo and submit your PR.
- Issue and PR are welcome.
Author
About
This package published under MIT license. If you have any question or suggestion, please feel free to submit an issue, or email me uyoobonga@gmail.com.