This commit is contained in:
Kekskurse 2021-02-08 01:28:06 +01:00
parent b7c7f1a538
commit c9784e38fa

View file

@ -43,10 +43,10 @@ class PublicController extends BaseController
$r = $g->forPage($page, 10);
return response()->json(["pagination" => [
"total" => $g->count(),
"items_per_page" => 10,
"pages" => ($g->count() / 10)],
"next" => url("/".$tenant->url.".json?page=".($page+1)),
"total" => $g->count(),
"items_per_page" => 10,
"pages" => ($g->count() / 10),
"next" => url("/".$tenant->url.".json?page=".($page+1))],
"data" => \App\Http\Resources\Gallery::collection($r)]);
}
public function listGalleriesView($name, Request $request) {