承接 litstack/location 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

litstack/location

Composer 安装命令:

composer require litstack/location

包简介

README 文档

README

A field that stores the latand lng values as well as further information of a place you can search like on google maps.

Setup

Prepare your model with two float colums, e.g. lat and lng and set them fillable.

$table->float('lat', 12, 9);
$table->float('lng', 12, 9);

In order to use the location field you need an Google-API-Key with the following APIs activated:

  • Maps JavaScript
  • Places API

Add this to your lit config.

'location' => [
    'google_api_key' => env('GOOGLE_API_KEY'),
],

Now the map field can be used like this:

$form->map('lat', 'lng');

You can save further information from the Places-API like this:

$form->map('lat', 'lng', [
    'formatted_address' => 'address', // saves the formatted_address attribute in the address column of your model
]);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-07-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固