company->db); //If the company is disabled, or if on hosted, the user is not a paid hosted user return early if (! $this->company || $this->company->is_disabled || (Ninja::isHosted() && !$this->company->account->isPaidHostedClient())) { return true; } Webhook::where('company_id', $this->company->id) ->where('event_id', $this->event_id) ->cursor() ->each(function ($subscription) { WebhookSingle::dispatch($subscription->id, $this->entity, $this->company->db, $this->includes); }); } public function failed($exception = null) { } }