This commit is contained in:
Kekskurse 2021-02-08 01:20:45 +01:00
parent bb21247c31
commit 124d52ea66

View file

@ -38,7 +38,10 @@ class PublicController extends BaseController
$gallery->html = $parser->parse($gallery->description); $gallery->html = $parser->parse($gallery->description);
} }
return response()->json(["data" => \App\Http\Resources\Gallery::collection(collect($galleries))]); $g = collect($galleries);
$r = $g->forPage(1, 10);
return response()->json(["data" => \App\Http\Resources\Gallery::collection($r)]);
} }
public function listGalleriesView($name, Request $request) { public function listGalleriesView($name, Request $request) {
$tenant = Tenant::query()->where("url", "=", $name)->firstOrFail(); $tenant = Tenant::query()->where("url", "=", $name)->firstOrFail();