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