8000 [Feature] Add length aware method to simple pagination strategy · Hy0320/laravel-json-api@c074c8e · GitHub
[go: up one dir, main page]

Skip to content

Commit c074c8e

Browse files
rekrioslindyhopchris
authored andcommitted
[Feature] Add length aware method to simple pagination strategy
Closes cloudcreativity#377
1 parent d2b2cd1 commit c074c8e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Pagination/StandardStrategy.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,16 @@ public function withSimplePagination()
134134

135135
return $this;
136136
}
137+
138+
/**
139+
* @return $this
140+
*/
141+
public function withLengthAwarePagination()
142+
{
143+
$this->simplePagination = false;
144+
145+
return $this;
146+
}
137147

138148
/**
139149
* @return $this

0 commit comments

Comments
 (0)
0