diff --git a/src/EnumValue.php b/src/EnumValue.php index f3f2f6b..11293f9 100644 --- a/src/EnumValue.php +++ b/src/EnumValue.php @@ -17,7 +17,7 @@ public static function getEnumValues() 'enum_'.config('database.connections.' . (new static)->connection . '.prefix') . (new static)->getTable() , 60, function() { $fields = DB::connection((new static)->connection)->select( - DB::raw("SHOW COLUMNS FROM " . config('database.connections.' . (new static)->connection . '.prefix') . (new static)->getTable()) + DB::raw("SHOW COLUMNS FROM " . config('database.connections.' . (new static)->connection . '.prefix') . (new static)->getTable())->getValue(DB::connection()->getQueryGrammar()) ); $result = []; foreach ($fields as $field) {