File tree 2 files changed +3
-12
lines changed 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,8 @@ class PublicationsController extends Controller
87
87
$publications->withPath('/admin/users')
88
88
->appends(['sort' => 'votes'])
89
89
->withQueryString()
90
- ->fragment('users');
90
+ ->fragment('users')
91
+ ->setPageName('publications_page');
91
92
92
93
return view('publications.index', compact('publications'));
93
94
}
Original file line number Diff line number Diff line change @@ -30,21 +30,13 @@ class PaginationMerge
30
30
*/
31
31
protected $ total ;
32
32
33
- /**
34
- * The query string variable used to store the page.
35
- *
36
- * @var string
37
- */
38
- protected $ pageName ;
39
-
40
33
/**
41
34
* Merge paginator instances
42
35
*
43
36
* @param mixed $paginators
44
- * @param string $pageName
45
37
* @return $this
46
38
*/
47
- public function merge ($ paginators, $ pageName = ' page ' )
39
+ public function merge ($ paginators )
48
40
{
49
41
$ paginators = is_array ($ paginators ) ? $ paginators : func_get_args ();
50
42
@@ -73,7 +65,6 @@ public function merge($paginators, $pageName = 'page')
73
65
$ this ->items = $ items ;
74
66
$ this ->perPage = $ perPage ;
75
67
$ this ->total = $ total ;
76
- $ this ->pageName = $ pageName ;
77
68
78
69
return $ this ;
79
70
}
@@ -119,7 +110,6 @@ public function get()
119
110
LengthAwarePaginator::resolveCurrentPage (),
120
111
[
121
112
'path ' => LengthAwarePaginator::resolveCurrentPath (),
122
- 'pageName ' => $ this ->pageName ,
123
113
]
124
114
);
125
115
}
You can’t perform that action at this time.
0 commit comments