Skip to content
Advertisement

Google Maps api is not working for Php Laravel Framework after Refreshing the page

I want to use google maps Api for search purposes in my application to do this i do the following things. I have included JavaScript code at the bottom of my Blade file. Here is my JavaScript for

JavaScript

And i have included the Google Api with my key like this in my head Tag

JavaScript

But problem is that it is works when i login or logout. As i refresh the page the following error comes to console

JavaScript

Any clue about this problem?

Advertisement

Answer

1.Change your script to

JavaScript
  1. change the inclusion line to your h

I hope it will help you for more details check out this link

Advertisement