From 56c00c2489865ed254660428448eac43a7d4d5bf Mon Sep 17 00:00:00 2001 From: Benjamin Nussbaum Date: Mon, 16 Jun 2025 14:47:03 +0200 Subject: [PATCH] feat: pretty-print recipe data payload --- resources/views/livewire/plugins/recipe.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/livewire/plugins/recipe.blade.php b/resources/views/livewire/plugins/recipe.blade.php index 3602ac4..c62335e 100644 --- a/resources/views/livewire/plugins/recipe.blade.php +++ b/resources/views/livewire/plugins/recipe.blade.php @@ -61,7 +61,7 @@ new class extends Component { $this->polling_url = $this->plugin->polling_url; $this->polling_verb = $this->plugin->polling_verb; $this->polling_header = $this->plugin->polling_header; - $this->data_payload = json_encode($this->plugin->data_payload); + $this->data_payload = json_encode($this->plugin->data_payload, JSON_PRETTY_PRINT); } public function saveMarkup(): void @@ -115,7 +115,7 @@ new class extends Component { ->json(); $this->plugin->update(['data_payload' => $response]); - $this->data_payload = json_encode($response); + $this->data_payload = json_encode($response, JSON_PRETTY_PRINT); } }