place = $place->withoutRelations(); } /** * Get the middleware the job should pass through. * * @return array */ public function middleware() { return [ new RateLimited('GPSCoordinate'), ]; } /** * Execute the job. * * @return void */ public function handle() { if (($batch = $this->batch()) !== null && $batch->cancelled()) { return; } try { app(GetGPSCoordinateService::class)->execute([ 'account_id' => $this->place->account_id, 'place_id' => $this->place->id, ]); } catch (RateLimitedSecondException $e) { $this->release(15); } } }