webhookConfiguration->endpoint, $this->data)->throw(); $successful = now(); } catch (\Exception) { $successful = null; } $this->webhookConfiguration->webhooks()->create([ 'payload' => $this->data, 'successful_at' => $successful, 'event' => $this->eventName, 'endpoint' => $this->webhookConfiguration->endpoint, ]); } }