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(),


Section::make('Action details')
    ->description()
    ->schema(function (Get $get): array {
        dd($get('connection_id')); // returns only the id of the select relation
        return [
        ];
})
Was this page helpful?