i.musabah
Get current instance
I wrote this
protected function form(Form $form): Form
{
list($locales, $keyNamespace, $keyGroup, $keyItem) = $this->record->getTranslateParams();
$fields = [];
foreach ($locales as $locale => $data) {
$fields[] = TextInput::make("value[$locale]")
->afterStateHydrated(function (TextInput $component, $state) use ($locale, $data) {
$component->state(data_get($data, 'translation.value.'.$local));
});
}
return $form->schema($fields);
}
but not works54 replies
Get current instance
Hum, I already access the record and built inputs but here I facing another challenge with inputs name
I use <input name="value[$local]" />
in normal html tag but how can present this in the filament input component?
54 replies
Get current instance
when the developer uses trans() or __ functions will automatically load this keys into Laravel app and create these keys into db by serviceprivder that give the admin or content team the ability to edit trans without back to the developers team
54 replies
Get current instance
@John I've wrote laravel package and I'm trying to integrate it with filamentPHP if that works I will start useing filamentPHP admin panel for my future project
https://github.com/ibrahimMH13/translate
54 replies