LaravelPackages.net
Acme Inc.
Toggle sidebar
silvanite/nova-field-place

An exhanced replacement Place field type to include additional latitude and longitude

99.027
7
v1.0.0
About silvanite/nova-field-place

silvanite/nova-field-place is a Laravel package for an exhanced replacement place field type to include additional latitude and longitude. It currently has 7 GitHub stars and 99.027 downloads on Packagist (latest version v1.0.0). Install it with composer require silvanite/nova-field-place. Discover more Laravel packages by silvanite or browse all Laravel packages to compare alternatives.

Last updated

Laravel Nova Place Field (Extended)

NOTICE: As of Nova 1.2.0 this functionality is now included in Nova by default and there is no need to install this package if you are using an up-to-date version of Nova.

An extended variant of the standard Nova Place Field to offer access to latitude and longitude coordinates

Installation

Install the tool through composer

composer require silvanite/nova-field-place

Usage

Please refer to the Nova documentation. This package simply adds the latitude and longitude options.

Use the Silvanite\NovaFieldPlace\PlaceExtended field instead of the standard Laravel\Nova\Fields\Place.

PlaceExtended::make('Address', 'address_line_1')
    ->secondAddressLine('address_2')
    ->city('city_name')
    ->state('state_code')
    ->postalCode('zip_code')
    ->latitude('latitude')
    ->longitude('longitude')
    ->country('country_code')

Support

If you require any support please contact me on Twitter or open an issue on this repository.

Comments