From 8e9a8a1f14f4dafae0cbea6219c8bf7cb745890a Mon Sep 17 00:00:00 2001 From: alexvenga Date: Fri, 7 Jul 2023 22:05:25 +0300 Subject: [PATCH] feat(new-structure): Translations to JSON --- .../MoonShineLaravelTranslationResource.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Resources/MoonShineLaravelTranslationResource.php b/src/Resources/MoonShineLaravelTranslationResource.php index f4d7c7f..251da15 100644 --- a/src/Resources/MoonShineLaravelTranslationResource.php +++ b/src/Resources/MoonShineLaravelTranslationResource.php @@ -74,7 +74,7 @@ public function fields(): array NoInput::make( 'Ключ', 'key', - fn( + fn ( MoonshineLaravelTranslation $moonshineLaravelTranslation ) => str($moonshineLaravelTranslation->key) ->replaceMatches( @@ -97,7 +97,7 @@ public function fields(): array NoInput::make( 'Ключ', 'key', - fn( + fn ( MoonshineLaravelTranslation $moonshineLaravelTranslation ) => str($moonshineLaravelTranslation->key) ->replaceMatches( @@ -195,12 +195,12 @@ public function queryTags(): array $tags = []; - //foreach (MoonshineLaravelTranslation::getGroupsList() as $groupList) { - // $tags[] = QueryTag::make( - // $groupList, // Tag Title - // fn(Builder $query) => $query->where('group', $groupList) // Query builder - // ); - //} + foreach (MoonshineLaravelTranslation::getGroupsList() as $groupList) { + $tags[] = QueryTag::make( + $groupList, // Tag Title + fn (Builder $query) => $query->where('group', $groupList) // Query builder + ); + } return $tags; }