bradcornford / Googlmapper

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

Argument 2 passed to Cornford\Googlmapper\MapperBase::__construct() must be of the type array, null given, called in D:\Laravel\ZooManager\vendor\cornford\googlmapper\src\Cornford\Googlmapper\MapperServiceProvider.php on line 47 #345

Closed JanosFalke closed 4 years ago

JanosFalke commented 4 years ago

I don't understand how to fix this error. "Argument 2 passed to Cornford\Googlmapper\MapperBase::__construct() must be of the type array, null given, called in D:\Laravel\ZooManager\vendor\cornford\googlmapper\src\Cornford\Googlmapper\MapperServiceProvider.php on line 47" Unbenannt

---Controller--- use Mapper;

public function index() { Mapper::map(53.381128999999990000, -1.470085000000040000); return view('home'); }

---View---

{!! Mapper::render() !!}

Already tried to set _Mapper::map($lng,$lat, ['center' => true]); Also checked config/app.php

Thanks a lot for your help guys !


Laravel version is 6.11.0

devdict commented 4 years ago

Have you fixed this problem?

bradcornford commented 4 years ago

Hi there,

This appears to be a caching issue, try running:

php artisan config:clear