$config */ public function issueFor(array $config): ?string { $template = trim((string) data_get($config, 'payload_template', '')); if ($template === '' || $template === 'null') { return null; } json_decode($template); if (json_last_error() !== JSON_ERROR_NONE) { return __('automations.errors.webhook_invalid_payload_json'); } return null; } }