File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -539,7 +539,7 @@ protected function setSort()
539
539
$ explodedCols = explode ('. ' , $ this ->sort ['column ' ]);
540
540
$ col = array_shift ($ explodedCols );
541
541
$ parts = implode ('. ' , $ explodedCols );
542
- $ columnName = "{$ col }->> '$. {$ parts }' " ;
542
+ $ columnName = "JSON_EXTRACT( {$ col }, '$. {$ parts }') " ;
543
543
}
544
544
545
545
// get column. if contains "cast", set set column as cast
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ protected function setUp(): void
37
37
38
38
$ adminConfig = require __DIR__ .'/config/admin.php ' ;
39
39
40
- $ this ->app ['config ' ]->set ('database.default ' , ' mysql ' );
40
+ $ this ->app ['config ' ]->set ('database.default ' , env ( ' DB_CONNECTION ' , ' mysql ') );
41
41
$ this ->app ['config ' ]->set ('database.connections.mysql.host ' , env ('MYSQL_HOST ' , 'localhost ' ));
42
42
$ this ->app ['config ' ]->set ('database.connections.mysql.database ' , env ('MYSQL_DATABASE ' , 'laravel_admin_test ' ));
43
43
$ this ->app ['config ' ]->set ('database.connections.mysql.username ' , env ('MYSQL_USER ' , 'root ' ));
You can’t perform that action at this time.
0 commit comments