Stuff
This commit is contained in:
parent
124d52ea66
commit
e64139cd09
1 changed files with 2 additions and 2 deletions
|
@ -39,9 +39,9 @@ class PublicController extends BaseController
|
|||
}
|
||||
|
||||
$g = collect($galleries);
|
||||
$r = $g->forPage(1, 10);
|
||||
$r = $g->forPage($request->input("page", 1), 10);
|
||||
|
||||
return response()->json(["data" => \App\Http\Resources\Gallery::collection($r)]);
|
||||
return response()->json([["pagination" => ["total" => $g->count(), "pages" => ($g->count() / 10)], "data" => \App\Http\Resources\Gallery::collection($r)]);
|
||||
}
|
||||
public function listGalleriesView($name, Request $request) {
|
||||
$tenant = Tenant::query()->where("url", "=", $name)->firstOrFail();
|
||||
|
|
Loading…
Reference in a new issue