vanthao03596/laravel-hanhchinhvn 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

vanthao03596/laravel-hanhchinhvn

最新稳定版本:1.2.0

Composer 安装命令:

composer require vanthao03596/laravel-hanhchinhvn

包简介

hành chính việt nam laravel

README 文档

README

Laravel hcvn contain all cities, districts, wards in vietnam

(Chú ý: Huyện Lý Sơn tỉnh Quảng Ngãi hiện chỉ còn cấp Huyện không có cấp xã )

Latest Version on Packagist Tests Total Downloads

Installation

You can install the package via composer:

composer require vanthao03596/laravel-hanhchinhvn

Usage

php artisan vendor:publish --provider="Vanthao03596\HCVN\HCVNServiceProvider"
php artisan migrate
php artisan hcvn:install

Working with Models

Get all cities, districts, wards

use Vanthao03596\HCVN\Models\Province;
use Vanthao03596\HCVN\Models\District;
use Vanthao03596\HCVN\Models\Ward;

$cities = Province::get();
$districts = District::get();
$wards = Ward::get();

Get data via relationship

use Vanthao03596\HCVN\Models\Province;

$city = Province::first();
$districts = $city->districts;
$wards = $city->wards;

All data get from: madnh/hanhchinhvn

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 6.39k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 40
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 40
  • Watchers: 1
  • Forks: 10
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-06