secret = Str::random(40); return [...$data, 'secret' => $this->secret]; } protected function afterCreate(): void { $this->record->forceFill(['created_by' => Auth::id()])->save(); WebhookResource::showSecret($this->secret); } protected function getCreatedNotification(): null { return null; } protected function getRedirectUrl(): string { return WebhookResource::getUrl('edit', ['record' => $this->record]); } }