Skip to content

Commit

Permalink
Update AbstractDatatable.php
Browse files Browse the repository at this point in the history
Added support for laravel 11.x
  • Loading branch information
iYogesharma authored May 22, 2024
1 parent 8ef7d5a commit 3662e0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AbstractDatatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ protected function setWhereColumns()
{
foreach ($this->query->columns as $c) {
if(gettype($c) === 'object'){
$c = $c->getValue();
$c = $c->getValue($this->query->grammar);
if (strpos($c, ' as ')) {
$column = explode(' as ', $c);
if (in_array(trim($column[1]), $this->searchColumns, true)) {
Expand Down

0 comments on commit 3662e0b

Please sign in to comment.