yieldstudio/nova-google-polygon
最新稳定版本:0.0.5
Composer 安装命令:
composer require yieldstudio/nova-google-polygon
包简介
A Laravel Nova Google polygon field.
README 文档
README
This package allows you to add a Google Map polygon editor on your Laravel Nova resources.
Requirements
- PHP 8.1+
- Laravel Nova 4.0+
- Laravel Framework 8.0+
Installation
You can install the package in to a Laravel app that uses Nova via composer:
composer require yieldstudio/nova-google-polygon
Publish config file (optional):
php artisan vendor:publish --provider="YieldStudio\NovaGooglePolygon\FieldServiceProvider"
Create an app and enable Places API and create credentials to get your API key https://console.developers.google.com
Add the below to your .env file
NOVA_GOOGLE_POLYGON_API_KEY=############################
NOVA_GOOGLE_POLYGON_CENTER_LAT=48.858361
NOVA_GOOGLE_POLYGON_CENTER_LNG=2.336164
Usage
Add the use declaration to your resource and use the fields:
use YieldStudio\NovaGooglePolygon\GooglePolygon; // .... GooglePolygon::make('Delivery area'),
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security
If you've found a bug regarding security please mail contact@yieldstudio.fr instead of using the issue tracker.
Credits
- James Hemery - Developer
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 39.87k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-31
