From fc0e73c5f7dc7a21a331e3d8b7335226d2137b7f Mon Sep 17 00:00:00 2001 From: LT Date: Sat, 28 Oct 2023 21:58:23 +0300 Subject: [PATCH] feat: New pages --- .../pages/ru/advanced/controller.blade.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/resources/views/pages/ru/advanced/controller.blade.php b/resources/views/pages/ru/advanced/controller.blade.php index d78d7ddf..53dacf05 100644 --- a/resources/views/pages/ru/advanced/controller.blade.php +++ b/resources/views/pages/ru/advanced/controller.blade.php @@ -97,4 +97,22 @@ public function __invoke(MoonShineRequest $request): Response } } + +Json ответ + + +namespace App\MoonShine\Controllers; + +use MoonShine\MoonShineRequest; +use MoonShine\Http\Controllers\MoonshineController; +use Symfony\Component\HttpFoundation\Response; + +final class CustomViewController extends MoonshineController +{ + public function __invoke(MoonShineRequest $request): Response + { + return $this->json(message: 'Message', data: [], redirect: null); + } +} +