Using formatStateUsing on Select relationship
How can we, for example format a date with the source coming from a relationship? I've tried using formatStateUsing but it doesn't seem to work.
public function form(Form $form): Form
{
return $form
->schema([
Forms\Components\Select::make('bucket_id')
->relationship(name: 'bucket', titleAttribute: 'date')
->required()
->preload()
]);
}