uyoobonga/statecity
Composer 安装命令:
composer require uyoobonga/statecity
包简介
This package will load all states in Nigeria and their respective Cities
README 文档
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.
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-06-02