Skip to content

Commit 566e481

Browse files
committed
add note to paginator docs
1 parent 934b974 commit 566e481

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pagination.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ If you wish to append a "hash fragment" to the paginator's URLs, you may use the
118118

119119
{{ $users->fragment('foo')->links() }}
120120

121+
#### Adjusting The Pagination Link Window
122+
123+
You may control how many additional links are displayed on each side of the paginator's URL "window". By default, three links are displayed on each side of the primary paginator links. However, you may control this number using the `onEachSide` method:
124+
125+
{{ $users->onEachSide(5)->links() }}
126+
121127
<a name="converting-results-to-json"></a>
122128
### Converting Results To JSON
123129

0 commit comments

Comments
 (0)