© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
xfly

Get relationship in select

a user hasOne profile, how can i show the user.profile.first_name and user.profile.last_name instead of the 'name' of the users table?

public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\Select::make('status')
->options(ProcessStatus::class),
Forms\Components\Select::make('user_id')
->label('User')
->options(User::all()->pluck('name', 'id'))
]);
}
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

Select All option in relationship Select
FilamentFFilament / ❓┊help
2y ago
Get relationship Select record data from $get
FilamentFFilament / ❓┊help
3y ago
Select relationship
FilamentFFilament / ❓┊help
3y ago
Slow select relationship in a relationship repeater
FilamentFFilament / ❓┊help
2y ago