Skip to content

Commit c123624

Browse files
author
Lisa Fehr
committed
Update Datatables.php
Made it case insensitive.
1 parent ec48c70 commit c123624

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/yajra/Datatables/Datatables.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public static function of($builder)
295295
*/
296296
private function getColumnName($str)
297297
{
298-
$matches = explode(' as ', $str);
298+
$matches = explode(' as ', Str::lower($str));
299299

300300
if (! empty($matches)) {
301301
return array_pop($matches);

0 commit comments

Comments
 (0)