model = $model; } /** * Execute the job. * * @return void */ public function handle() { $address = $this->model->getAddressForGeolocation(); if (!$address) { $this->model->destroyCoordinate(); return; } $coordinate = $address->getCoordinate(); if (!$coordinate) { return; } $this->model->fillCoordinate($coordinate); } }