F
Filament14mo ago
soand

Get relationship Select record data from $get

when using a form field for a select on a belongsTo from the model is there anyway to get the data from the field selected when using $get?
Select::make('connection_id')
->relationship('connection', 'name')
->live()
->required(),
Select::make('connection_id')
->relationship('connection', 'name')
->live()
->required(),
Section::make('Action details')
->description()
->schema(function (Get $get): array {
dd($get('connection_id')); // returns only the id of the select relation
return [
];
})
Section::make('Action details')
->description()
->schema(function (Get $get): array {
dd($get('connection_id')); // returns only the id of the select relation
return [
];
})
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server