From 8742bfced74274c30a138ae464197e90e5e858c3 Mon Sep 17 00:00:00 2001 From: alexvenga Date: Fri, 7 Jul 2023 22:27:55 +0300 Subject: [PATCH] fix(new-structure): Drop custom ordering/Fix dots Drop custom ordering for translations Fix dot-notation --- src/Actions/ExportTranslationsAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Actions/ExportTranslationsAction.php b/src/Actions/ExportTranslationsAction.php index 1556e7c..d63d9f5 100644 --- a/src/Actions/ExportTranslationsAction.php +++ b/src/Actions/ExportTranslationsAction.php @@ -24,7 +24,7 @@ public function handle(): RedirectResponse 'root' => lang_path(), ]); - $translations = MoonshineLaravelTranslation::orderBy('group, key')->get(); + $translations = MoonshineLaravelTranslation::orderByRaw('`group`, `key`')->get(); $translations = $translations->mapWithKeys(function ( MoonshineLaravelTranslation $moonshineLaravelTranslation,