Skip to content

Commit

Permalink
Update AddressValidServiceProvider.php
Browse files Browse the repository at this point in the history
Keyless access to Google Maps Platform is deprecated
  • Loading branch information
CodeAnGo authored Oct 18, 2018
1 parent f06a9bc commit 40a524b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/AddressValidServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public function boot()

$client = new Client(['verify' => false]);
$result = $client->request('GET', 'https://maps.googleapis.com/maps/api/geocode/json', [
'query' => ['address' => $remove_spaces]
'query' => ['address' => $remove_spaces],
'key' => env('GOOGLE_MAPS_API_KEY')
]);
$response = json_decode($result->getBody());
if ($response->status=='OK') {
Expand Down

0 comments on commit 40a524b

Please # to comment.