Use translatable for relations in select components
- Published: 25 Mar 2024 Updated: 08 Aug 2026
get translatable attribute in a relationships
when using a relations in a select menu or a filter, and that model is translatable, this is how to get the translatable attribute:
1->getOptionLabelFromRecordUsing(fn (Model $record) => $record->title)
Related Tricks:
I’ll guide you on how to test your Form Builder using Livewire Volt with a class-based component.
make all Field or any components translatable
Bring the sticky actions back form filament v2
Usability: Knowing whether or not the record was saved.
how to use a resource with multiple models