Skip to content

Commit

Permalink
feat: New pages
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to committed Oct 28, 2023
1 parent b927725 commit fc0e73c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions resources/views/pages/ru/advanced/controller.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,22 @@ public function __invoke(MoonShineRequest $request): Response
}
}
</x-code>

<x-sub-title>Json ответ</x-sub-title>

<x-code>
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);
}
}
</x-code>
</x-page>

0 comments on commit fc0e73c

Please sign in to comment.