We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99a05e4 commit 43de540Copy full SHA for 43de540
src/Traits/Buildable.php
@@ -170,15 +170,15 @@ public function paginate(
170
if (is_array($page)) {
171
$page = $this->recursiveImplodeWithKey($page);
172
}
173
+
174
$columns = collect($columns)->toArray();
-
175
$keyDifferentiator = "-paginate_by_{$perPage}_{$pageName}_{$page}";
176
177
if ($total !== null) {
178
$total = value($total);
179
- if ($total !== null) {
180
- $keyDifferentiator .= "_{$total}";
181
- }
+ $keyDifferentiator .= $total !== null
+ ? "_{$total}"
+ : "";
182
183
184
$cacheKey = $this->makeCacheKey($columns, null, $keyDifferentiator);
0 commit comments