Make pagination tabs dynamically update

This commit is contained in:
Matthew Penner 2021-01-03 12:32:39 -07:00
parent 052a6d4ce5
commit ce40194147
2 changed files with 42 additions and 48 deletions

View file

@ -37,7 +37,7 @@ class NestController extends ApplicationApiController
*/
public function index(GetNestsRequest $request): array
{
$nests = $this->repository->paginated(2);
$nests = $this->repository->paginated(1);
return $this->fractal->collection($nests)
->transformWith($this->getTransformer(NestTransformer::class))