mattrothenberg / location
此包的最新版本(1.0)没有提供许可信息。
1.0
2019-12-05 21:22 UTC
- dev-master
- 1.0
- dev-dependabot/npm_and_yarn/json5-1.0.2
- dev-dependabot/npm_and_yarn/express-4.18.2
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/eventsource-1.1.1
- dev-dependabot/npm_and_yarn/async-2.6.4
- dev-dependabot/npm_and_yarn/url-parse-1.5.10
- dev-dependabot/npm_and_yarn/follow-redirects-1.14.8
- dev-dependabot/npm_and_yarn/ajv-6.12.6
- dev-dependabot/npm_and_yarn/tar-4.4.19
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/ws-6.2.2
- dev-dependabot/npm_and_yarn/dns-packet-1.3.4
- dev-dependabot/npm_and_yarn/browserslist-4.16.6
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/ssri-6.0.2
- dev-dependabot/npm_and_yarn/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/ini-1.3.8
- dev-dependabot/npm_and_yarn/http-proxy-1.18.1
- dev-dependabot/npm_and_yarn/websocket-extensions-0.1.4
- dev-dependabot/npm_and_yarn/acorn-6.4.1
- dev-fix-asset-registration
This package is auto-updated.
Last update: 2024-09-05 06:01:43 UTC
README
Statamic V3的位置自动完成字段
为什么?
发布此插件的想法来源于以下博客文章。
https://dev.to/mattrothenberg/build-a-location-autocomplete-field-for-statamic-v3-49cp
在你的Statamic应用中将自定义字段类型定位在一起是一回事...为其他人构建一个插件以便他们也能使用它则是另一回事。这是我辛勤工作的成果!
安装
(无耻地借鉴自 https://github.com/riasvdv/statamic-color-swatches)
将Github仓库克隆到某处,然后将其添加到composer.json的repositories数组中。(只有在包发布之前才需要这样做。)调整url以指向克隆的目录。
"repositories": [
{
"type": "path",
"url": "addons/mattrothenberg/location"
}
]
使用Composer安装。
composer require mattrothenberg/location
发布资产
php artisan vendor:publish --provider="Mattrothenberg\Location\ServiceProvider"
添加两个环境变量,因为这个库在内部使用 Places.js 进行位置自动完成。
PLACES_APP_ID=""
PLACES_API_KEY=""