定制 jiejunf/laravel-locations 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

jiejunf/laravel-locations

Composer 安装命令:

composer require jiejunf/laravel-locations

包简介

location data, flag and api for laravel.

README 文档

README

中文

This package provide location data, flag and api for laravel.

install

composer require jiejunf/laravel-locations

resource

publish config

php artisan vendor:publish --provider="Jiejunf\\LaravelLocations\\LocationProvider"

make flags dir

Package service provider always sets flags-path into config.filesystems.links on boot.

php artisan storage:link

This script will make a symbol link in /public. You should add it into /.gitignore .

API

api routes have a prefix, setting in locations.route. default is api/locations/.

Data can be corrected in the configuration locations.fix_countries.

  • GET countries
    • query:
      • page int optional page number. Default no paging.
      • per_page int optional per page count. Default 30
      • sort_by string|array optional Default iso2
      • descending bool optional active if sort_by is string. Default false
      • sort_option string optional for phone. Default REGULAR.
        • REGULAR
        • STRING

The API resource class can be used to modify the response content. default:

php artisan make:resource Locations/Country

Or specify in locations.api_resources

upgrade

from v1

All object types returned from the Location class are changed to array

统计信息

  • 总下载量: 53
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-12-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固