Skip to content

Commit 58b3f3a

Browse files
Added fix for querying over multiple tables where columns are ambigious.
1 parent 7f51b1f commit 58b3f3a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/LiveControl/EloquentDataTable/DataTable.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,12 @@ private function getColumnNames()
162162
$names[] = $column->getName();
163163
continue;
164164
}
165+
166+
if(is_string($column) && strstr($column, '.'))
167+
{
168+
$column = explode('.', $column);
169+
}
170+
165171
$names[] = (is_array($column) ? $this->arrayToCamelcase($column) : $column);
166172
}
167173
return $names;

0 commit comments

Comments
 (0)