https://github.com/geocoder-php/GeocoderLaravel/blob/master/config/geocoder.php I cant get pass this point. 1. this is my Job
public $model;
public function __construct($model)
{
$this->model = $model;
}
public function handle()
{
$result = new Geocoder();
$result->geocode($this->model->getAddressString());
// $result = Geocoder::geocode($this->model->getAddressString());
$this->model->setCoordinates($result->getLatitude(), $result->getLongitude());
}
}
I followed the instructions in the repo readme to install geocoder into my project.
2. this is my controller
При попытке получить широту и широту от адреса, я получаю ошибку, не зарегистрированную провайдером ..
protected function create(array $data)
{
$user = User::create([
'fname' => $data['fname'],
'lname' => $data['lname'],
'email' => $data['email'],
'zipcode' => $data['zipcode'],
'address_latitude' => $data['address_latitude'],
'address_longitude' =>$data['address_longitude'],
'password' => Hash::make($data['password']),
'gender' => $data['gender'],
'dob' => $data['dob'],
'health' => $data['health'],
]);
//$this-> dispatch(new GeocodePartnerAddress($user));
$this->dispatch(new GeocodeAddress($user));
}
При попытке получить широту и широту от адреса, я получаю зарегистрированную провайдерошибка ..
I followed the instructions in the repo readme to install geocoder into my project.
Я получаю сообщение "Поставщик не зарегистрирован".эта ошибка, если вы сделали эту проблему, пожалуйста, дайте мне решение, где я не прав.