invoice = $invoice; $this->type = $type; $this->server = config('database.default'); } /** * Execute the job. * * @param PushService $pushService */ public function handle(PushService $pushService) { if (config('queue.default') !== 'sync') { $this->invoice->account->loadLocalizationSettings(); } $pushService->sendNotification($this->invoice, $this->type); } }