Add Google Map in Laravel with Googlmapper

Want to install GoogleMap in Laravel? GoogleImapper package could be nice solution for you then. It allows you to access following functionalities-

How to Install:

In order to install Googlmapper, go to composer.json file and add these line of code-

"require": { "cornford/googlmapper": "2.*" }

Next, update composer in terminal

composer update

Now, Open app/config/app.php , and add a new item to the providers array.

'Cornford\Googlmapper\MapperServiceProvider',

The next step is to introduce the #facade. Open app/config/app.php , and add a new item to the aliases array

'Mapper' => 'Cornford\Googlmapper\Facades\MapperFacade',

Finally we need to introduce the configuration files into your application.

php artisan vendor:publish --provider="Cornford\\Googlmapper\\MapperServiceProvider"

You have done installation. Now implement #Googlemapper.

Configuration:


Originally published at www.laravelfeed.com.