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() + ], ]; }); }