Relationship Manager - Custom Title Attributes?
I need to refine the title attribute for the select in the relationship manager attaching method. Any suggestions on the way to handle this? I need a few columns
Tables\Actions\AttachAction::make()
->form(fn (AttachAction $action): array => [
Forms\Components\Select::make('recordId')
->preload()
->options(fn() => \App\Models\MyModel::query()
->get()
->mapWithKeys(fn($item) => [$item->id => $item->title . ' - ' . $item->part])
->toArray()
)
]),