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 c886447 commit 056aa2eCopy full SHA for 056aa2e
src/DataTableResponder.php
@@ -128,13 +128,14 @@ private function paginateQuery(Builder $query)
128
*/
129
private function manipulateCollection($results)
130
{
131
+ $collection = $results->getCollection();
132
$manipulator = $this->collectionManipulator;
133
- if($manipulator) {
134
- $manipulated = $manipulator($results);
+ if ($manipulator) {
135
+ $manipulated = $manipulator($collection);
136
137
if ($manipulated) {
- return $manipulated;
138
+ $results->setCollection($manipulated);
139
}
140
141
0 commit comments