valpuia / mizokhua
Mizoram地区和村庄列表
v1.0.0
2024-05-24 02:56 UTC
Requires
- php: ^8.2||^8.3
- illuminate/contracts: ^10.0||^11.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^9.0.0||^8.22.0
- pestphp/pest: ^2.34
- pestphp/pest-plugin-arch: ^2.7
- pestphp/pest-plugin-laravel: ^2.3
README
Awlsam tak a Mizoram chhung a district leh khua te neih na (Easy way to get lists of district and village in Mizoram)
安装
您可以通过composer安装此包
composer require valpuia/mizokhua php artisan mizokhua:install
mizokhua:install
后会发布迁移文件并要求您运行迁移(After running mizokhua:install
it published migration files and ask you to run the migration)
Seeder
php artisan mizokhua:seed
mizokhua:seed
命令会将地区和村庄种子到数据库中,您可以使用以下方式轻松使用(Using mizokhua:seed
command it seeds districts and villages in database and you can easily use like below)
用法
use Valpuia\Mizokhua\Models\District; use Valpuia\Mizokhua\Models\Village; Village::with('district') // ->where('district_id', 1) // ->where('name', 'Aibawk') ->get(); District::with('villages') // ->where('name', 'Aizawl') ->get();
待办事项
- 发布种子
- 发布模型
变更日志
有关最近更改的更多信息,请参阅 CHANGELOG
安全漏洞
有关如何报告安全漏洞,请参阅 我们的安全策略
鸣谢
许可证
MIT许可证(MIT)。请参阅 许可证文件 获取更多信息。