From 52cbb95648e33b81187cc69f2c65a27258c183b8 Mon Sep 17 00:00:00 2001 From: Maxime Renou Date: Fri, 29 Nov 2024 16:12:33 +0100 Subject: [PATCH] add form json --- src/Pilot.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Pilot.php b/src/Pilot.php index b6cc275..03de526 100644 --- a/src/Pilot.php +++ b/src/Pilot.php @@ -29,7 +29,9 @@ class Pilot { $this->register('form', $slug, function () use ($function) { return [ - 'json' => $function(), + 'json' => [ + 'form' => $function() + ], ]; }); }