Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/silvanite/nova-field-place
An extended variant of the standard Nova Place Field to offer access to latitude and longitude coordinates
https://github.com/silvanite/nova-field-place
Last synced: 28 days ago
JSON representation
An extended variant of the standard Nova Place Field to offer access to latitude and longitude coordinates
- Host: GitHub
- URL: https://github.com/silvanite/nova-field-place
- Owner: Silvanite
- Created: 2018-10-13T15:25:36.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-20T08:17:37.000Z (almost 6 years ago)
- Last Synced: 2024-10-08T14:13:56.350Z (about 1 month ago)
- Language: Vue
- Size: 67.4 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```sh
composer require silvanite/nova-field-place
```## Usage
Please refer to the [Nova documentation](https://nova.laravel.com/docs/1.0/resources/fields.html#place-field). This package simply adds the latitude and longitude options.
Use the `Silvanite\NovaFieldPlace\PlaceExtended` field instead of the standard `Laravel\Nova\Fields\Place`.
```php
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](https://twitter.com/m2de_io) or open an issue on this repository.