Skip to content

Commit 04ff276

Browse files
authored
Adding the withQueryString method to the paginator interface (#54462)
- According to the documentation, `paginate` has a `withQueryString` method. - See, https://laravel.com/docs/pagination#appending-query-string-values - Not only `cursorPaginate`, but also `paginate` and `simplePaginate` should implement `withQueryString` and work with it. ref: laravel/framework#54460
1 parent ca97920 commit 04ff276

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Pagination/Paginator.php

+7
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ public function appends($key, $value = null);
3434
*/
3535
public function fragment($fragment = null);
3636

37+
/**
38+
* Add all current query string values to the paginator.
39+
*
40+
* @return $this
41+
*/
42+
public function withQueryString();
43+
3744
/**
3845
* The URL for the next page, or null.
3946
*

0 commit comments

Comments
 (0)