Updated responsive support for frontend

This commit is contained in:
Fritz Ramirez
2024-03-23 13:27:26 +08:00
parent fa2119122c
commit ec163b29ab
14 changed files with 119 additions and 28 deletions
@@ -30,6 +30,15 @@ class SectionController extends Controller
]);
}
public function lazyLoadSectionItems(Request $request, Section $section)
{
$items = $this->service->lazyLoadSectionItems($section, $request->skipped);
return response()->json([
'items' => $items,
]);
}
public function store(SectionRequest $request)
{
$section = $this->repository->create($request->title, $request->layout);