Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ollie_123's avatar

Google Maps Integration

Afternoon All

Ive used google maps before but am now trying integrate it into Laravel 7.

Please could someone advise on the best way to go about this. I'm looking to have multiple pins based on users in the database.

I've looked at the various packages on GitHub and most are either not compatible with Laravel 7 or others have limited documentation.

Any suggestions would be greatly appreciated.

Thanks in advance.

0 likes
4 replies
bobbybouwmann's avatar
Level 88

You probably don't need a Laravel package for this because Google Maps itself is pure javascript. There are a lot of examples in the documentation of google maps for this. You only need to convert the locations of the user to coordinates so you can pass them to your frontend and display them there.

Here is a tutorial: https://www.itsolutionstuff.com/post/laravel-5-multiple-markers-in-google-map-using-gmapsjsexample.html

Note that the tutorial is for Laravel 5. However, it works exactly the same in Laravel 7 ;)

4 likes

Please or to participate in this conversation.