LaravelPackages.net
Acme Inc.
Toggle sidebar
yieldstudio/nova-google-polygon

A Laravel Nova Google polygon field.

39.997
5
0.0.5
About yieldstudio/nova-google-polygon

yieldstudio/nova-google-polygon is a Laravel package for a laravel nova google polygon field.. It currently has 5 GitHub stars and 39.997 downloads on Packagist (latest version 0.0.5). Install it with composer require yieldstudio/nova-google-polygon. Discover more Laravel packages by yieldstudio or browse all Laravel packages to compare alternatives.

Last updated

Nova Google Polygon Field

Latest Version Total Downloads

This package allows you to add a Google Map polygon editor on your Laravel Nova resources.

screenshot

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 [email protected] instead of using the issue tracker.

Credits

License

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

Star History Chart