yuriy-martini / nova-place-field
Installs: 44
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/yuriy-martini/nova-place-field
Requires
- php: ^7.1 || ^7.2
- laravel/nova: <4.0
Requires (Dev)
- orchestra/testbench: >=3.6
- phpstan/phpstan: >=1.0
- squizlabs/php_codesniffer: >=3.1
This package is not auto-updated.
Last update: 2025-10-11 03:36:59 UTC
README
Installation
composer require yuriy-martini/nova-place-field
Configuration
Add to .env
file GOOGLE_MAPS_PLACES_API_KEY
or GOOGLE_MAPS_API_KEY
.
GOOGLE_MAPS_API_KEY= GOOGLE_MAPS_PLACES_API_KEY=${GOOGLE_MAPS_API_KEY}
Usage
use Laravel\Nova\Fields\Country; use Laravel\Nova\Fields\Text; use YuriyMartini\NovaPlaceField\Place; public function fields(Request $request) { return [ Place::make('Address') ->locality('city') ->administrativeAreaLevel1('state') ->country('country', true), Text::make('Street Number'), Text::make('City'), Text::make('State'), Text::make('Postal Code'), Country::make('Country'), ]; }
Changelog
Please see Changelog File for more information on what has changed recently.
Testing
composer test
License
The MIT License (MIT). Please see License File for more information.