| Recommend this page to a friend! | 
|  Download | 
| Info | Documentation |  Files |  Install with Composer |  Download | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not yet rated by the users | Total: 52 | All time:  10,676 This week: 455  | ||||
| Version | License | PHP version | Categories | |||
| nova-address-autocom 1.0 | The PHP License | 5 | HTML, PHP 5, Web services, Geography | 
| Description | Author | |
| This package can generate address input field for Laravel Nova. | 
An address field that autocomplete the user input to show suggested addresses using Google Place service.
You can install the package in to a Laravel app that uses Nova via composer:
composer require naif/address_autocomplete
Publish the package config file:
php artisan vendor:publish --provider="Naif\AddressAutocomplete\FieldServiceProvider"
Configuration will be published at [config/address_autocomplete.php].
Add the following keys to your .env and .env.example:
ADDRESS_AUTOCOMPLETE_API_KEY=
Optional: Set map and address language
ADDRESS_AUTOCOMPLETE_LANGUAGE=fr
_If you need a Google Maps API key, you can create an app and enable Places API and create credentials to get your API key https://console.developers.google.com._
Add the below to Nova/User.php resource:
AddressAutocomplete::make('Address'),
//You can add a country or countries to autocomplete or leave empty for all.
          
// Specify a single country
AddressAutocomplete::make('Address')
          ->countries('US'),
                
// Specify multiple countries [array]
AddressAutocomplete::make('Address')
          ->countries(['US','AU']),

https://www.linkedin.com/in/naif
The MIT License (MIT). Please see License File for more information.
|  Files (14) | 
| File | Role | Description | ||
|---|---|---|---|---|
|  config (1 file) | ||||
|  dist (1 directory) | ||||
|  resources (2 directories) | ||||
|  src (2 files) | ||||
|    composer.json | Data | Auxiliary data | ||
|    mix-manifest.json | Data | Auxiliary data | ||
|    package.json | Data | Auxiliary data | ||
|    README.md | Doc. | Documentation | ||
|    webpack.mix.js | Data | Auxiliary data | ||
|  Files (14) | / | resources | / | js | / | components | 
| File | Role | Description | 
|---|---|---|
|    DetailField.vue | Data | Auxiliary data | 
|    FormField.vue | Data | Auxiliary data | 
|    IndexField.vue | Data | Auxiliary data | 
|  Files (14) | / | src | 
| File | Role | Description | 
|---|---|---|
|  AddressAutocomplete.php | Class | Class source | 
|  FieldServiceProvider.php | Class | Class source | 
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
|  Install with Composer | 
|  | nova-address-autocom-2019-02-19.zip 72KB | 
|  | nova-address-autocom-2019-02-19.tar.gz 70KB | 
|  | Install with Composer | 
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% | 
 | 
 | 
| Applications that use this package | 
 If you know an application of this package, send a message to the author to add a link here.
 If you know an application of this package, send a message to the author to add a link here.