© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
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 [
        ];
})
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to get record of select relationship automatically
FilamentFFilament / ❓┊help
3y ago
TextColumn get relationship record
FilamentFFilament / ❓┊help
2y ago
Get another field from selected relationship record
FilamentFFilament / ❓┊help
2y ago
Get relationship in select
FilamentFFilament / ❓┊help
3y ago