Skip to content

Commit

Permalink
Merge pull request #108 from rockbuzz/feat/tags_per_page
Browse files Browse the repository at this point in the history
feat: number of tags per page
  • Loading branch information
dljfield authored Apr 30, 2021
2 parents 168e09c + 0cb7636 commit de9b631
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Http/Controllers/Api/TagsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public function index(): AnonymousResourceCollection
{
$workspaceId = Sendportal::currentWorkspaceId();

return TagResource::collection($this->tags->paginate($workspaceId, 'name'));
return TagResource::collection(
$this->tags->paginate($workspaceId, 'name', [], request()->get('per_page', 25))
);
}

/**
Expand Down

0 comments on commit de9b631

Please sign in to comment.