bradcornford / Googlmapper

An easy way to integrate Google Maps with Laravel
MIT License
464 stars 142 forks source link

Mapper not defined #293

Closed arelidev closed 6 years ago

arelidev commented 6 years ago

Hey, I followed the steps in your readme but my IDE (PHPStorm) isn't recognizing the facade. Laravel is also telling me this:

View [mapper] not found.

I'm sure it's just me, but any suggestions?

screen shot 2018-08-22 at 1 39 53 pm

cloudwales commented 6 years ago

Have you added it to the config/app.php Aliases and Provider Cornford\Googlmapper\MapperServiceProvider::class, 'Mapper' => Cornford\Googlmapper\Facades\MapperFacade::class,

arelidev commented 6 years ago

Yes, I followed the instructions.

On Mon, Aug 27, 2018, 3:52 AM Chris Bowen notifications@github.com wrote:

Have you added it to the config/app.php Aliases and Provider Cornford\Googlmapper\MapperServiceProvider::class, 'Mapper' => Cornford\Googlmapper\Facades\MapperFacade::class,

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bradcornford/Googlmapper/issues/293#issuecomment-416145658, or mute the thread https://github.com/notifications/unsubscribe-auth/ANQ4x7dBNSi-McfRACTjo58EzMOBffvnks5uU6VUgaJpZM4WIHKN .

bradcornford commented 6 years ago

Hi there,

You can do the following:

use Cornford\Googlmapper\Facades\MapperFacade as Mapper;
arelidev commented 6 years ago

Hey sorry for the delay. I tried adding use Cornford\Googlmapper\Facades\MapperFacade as Mapper; but I'm still seeing the same error. Any other thoughts?

arelidev commented 6 years ago

I found the solution to my problem here: https://github.com/bradcornford/Googlmapper/issues/29 I ran the following commands only: php artisan cache:clear php artisan vendor:publish --tag=googlmapper