PHP code example of naif / address_autocomplete
1. Go to this page and download the library: Download naif/address_autocomplete 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/ */
naif / address_autocomplete example snippets
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']),
bash
php artisan vendor:publish --provider="Naif\AddressAutocomplete\FieldServiceProvider"