Skip to content

Commit

Permalink
[TGER-140] pull Google Places API key from Package laravel-google-api…
Browse files Browse the repository at this point in the history
… config
  • Loading branch information
devjk1 committed Apr 1, 2021
1 parent a70ba05 commit 2eb72c4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion config/addresses.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

return [
'google_api_key' => env('GOOGLE_API_KEY'),
];
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class="mt-2 px-2 py-1 bg-white text-green-500 border-2 border-green-400 rounded-
</form>
</div>

<script async src="https://maps.googleapis.com/maps/api/js?key={{ config('addresses.google_api_key') }}&libraries=places&callback=initMap">
<script async src="https://maps.googleapis.com/maps/api/js?key={{ config('google-api.places.key') }}&libraries=places&callback=initMap">
const inputAddressLine1 = document.getElementById("address-line-1");
// const inputAddressLine2 = document.getElementById("address-line-2");
const inputCity = document.getElementById("city");
Expand Down

0 comments on commit 2eb72c4

Please sign in to comment.