File tree 2 files changed +8
-2
lines changed 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -85,11 +85,17 @@ return [
85
85
'use_simple_pagination' => false,
86
86
87
87
/*
88
- * If you want to cursor pagination, set this to true.
88
+ * If you want to use cursor pagination, set this to true.
89
89
* This would override use_simple_pagination.
90
90
*/
91
91
'use_cursor_pagination' => false,
92
92
93
+ /*
94
+ * use simpleFastPaginate() or fastPaginate from https://github.com/hammerstonedev/fast-paginate
95
+ * use may installed it via `composer require hammerstone/fast-paginate`
96
+ */
97
+ 'use_fast_pagination' => false,
98
+
93
99
/*
94
100
* Here you can override the base url to be used in the link items.
95
101
*/
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ protected function registerMacro()
45
45
: (config ('json-api-paginate.use_fast_pagination ' ) ? 'fastPaginate ' : 'paginate ' )
46
46
);
47
47
48
- if (config ('json-api-paginate.use_simple_pagination ' ) && !InstalledVersions::isInstalled ('hammerstone/fast-paginate ' )) {
48
+ if (config ('json-api-paginate.use_fast_pagination ' ) && !InstalledVersions::isInstalled ('hammerstone/fast-paginate ' )) {
49
49
abort (500 , 'You need to install hammerstone/fast-paginate to use fast pagination. ' );
50
50
}
51
51
You can’t perform that action at this time.
0 commit comments