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
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"
---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
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"
---Controller--- use Mapper;
public function index() { Mapper::map(53.381128999999990000, -1.470085000000040000); return view('home'); }
---View---
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