PHP code example of digitalcloud / nova-address-field

1. Go to this page and download the library: Download digitalcloud/nova-address-field library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

digitalcloud / nova-address-field example snippets


use DigitalCloud\AddressField\AddressField;
// ....

AddressField::make('Address'),

//You can enable lat and lng inputs:
GoogleAutocomplete::make('Address')
          ->withLatLng(),
          
//You can enable map picking address:
GoogleAutocomplete::make('Address')
        ->withMap(),
        
//You can set the init location and zoom for the map:
GoogleAutocomplete::make('Address')
        ->withMap()->initLocation('24.6', '46.7')->zoom(5),