Select realtionship with translation

Select::make('course_id')
          ->label(__('Course'))
          ->relationship('course', 'name')


the options is not casted
image.png
Solution
thanks , this should work
however I solved it using
->getOptionLabelFromRecordUsing(fn ($record) => $record->name)
Was this page helpful?