Stuff
This commit is contained in:
parent
b7c7f1a538
commit
c9784e38fa
1 changed files with 4 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue