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 60d60c2 commit 2c46cceCopy full SHA for 2c46cce
src/Traits/WithSorting.php
@@ -76,7 +76,7 @@ public function applySorting(): Builder
76
77
// TODO: Test
78
if ($column->hasSortCallback()) {
79
- $this->setBuilder(app()->call($column->getSortCallback(), ['builder' => $this->getBuilder(), 'direction' => $direction]));
+ $this->setBuilder(call_user_func($column->getSortCallback(), $this->getBuilder(), $direction));
80
} elseif ($column->isBaseColumn()) {
81
$this->setBuilder($this->getBuilder()->orderBy($column->getColumnSelectName(), $direction));
82
} else {
0 commit comments