From bade1713bd20833e44feb82a47bf2ff32cfcca74 Mon Sep 17 00:00:00 2001 From: chris cnizzardini Date: Sun, 18 Oct 2020 10:59:27 -0400 Subject: [PATCH] fixes documentation on SwagPaginator --- docs/annotations.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/annotations.md b/docs/annotations.md index 1bde074c..ea81de64 100644 --- a/docs/annotations.md +++ b/docs/annotations.md @@ -42,7 +42,8 @@ be used. You can override the defaults using the `sort` attribute. Otherwise, a use SwaggerBake\Lib\Annotation as Swag; /** * @Swag\SwagPaginator # default without attributes should work fine in most cases - * @Swag\SwagPaginator(sort={"id","name"}, useSortTextInput=false) # custom example + * @Swag\SwagPaginator(sortEnum={"id","name"}) # custom example + * @Swag\SwagPaginator(useSortTextInput=false) # force a text field instead of enum/dropdown */ public function index() { $employees = $this->paginate($this->Employees);