Hello i'm interested in the solution as i want to display TexFields from config('traslation.locale') array
collect(Config::get("translation.locales")) ->map( fn ($value) => TextInput::make($value."name") ->label($value) ->default(false) ) ->toArray();
but when i put this code in the Schema of form function of a Resource in the panel i get this Error
Filament\Forms\ComponentContainer::Filament\Forms\Concerns\{closure}(): Argument #1 ($component) must be of type Filament\Forms\Components\Component, array given
Any suggestions on where to place this code ?
Thanks