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; }