© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
10 replies
Abinash

Select Field relationship on edit page

Forms\Components\Select::make('employee_code_with_full_name')
->label(__('cranberry-cookie::cranberry-cookie.form.input.employee_code_with_name'))
->searchable()
->relationship(
   name: 'employee',
   titleAttribute: 'employee_code_with_full_name',
   modifyQueryUsing: function (Builder $query, string $operation) {
                      $query->where('status',EmployeeStatus::ACTIVE);
                       })
Forms\Components\Select::make('employee_code_with_full_name')
->label(__('cranberry-cookie::cranberry-cookie.form.input.employee_code_with_name'))
->searchable()
->relationship(
   name: 'employee',
   titleAttribute: 'employee_code_with_full_name',
   modifyQueryUsing: function (Builder $query, string $operation) {
                      $query->where('status',EmployeeStatus::ACTIVE);
                       })

it shows emplyee id on edit page but i need to show the employee_code_with_full_name
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 Field empty on Edit Page
FilamentFFilament / ❓┊help
2y ago
Reorder on Select field relationship
FilamentFFilament / ❓┊help
2y ago
Preload BelongsToMany relationship on Edit Page
FilamentFFilament / ❓┊help
3y ago
Can't hydrate single edit/view page select field with M:M relationship
FilamentFFilament / ❓┊help
3y ago