© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
kisut

Select Field empty on Edit Page

Hi,

I have an edit page that can only be accessed by super_admin, there is a select field that queries the data that the user has created. But when the super_admin wants to edit the data, the data in the select disappears even though it has been recorded in the database. Is this a bug or did I write the code wrong on the query?

Forms\Components\Select::make('featuredArtistsAlbum')
       ->relationship('featuredArtistsAlbum', 'artist_name', fn (Builder $query) => $query->whereBelongsTo(auth()->user()))
Forms\Components\Select::make('featuredArtistsAlbum')
       ->relationship('featuredArtistsAlbum', 'artist_name', fn (Builder $query) => $query->whereBelongsTo(auth()->user()))
F6021AE1-DA11-45B3-A13C-BD70D8C7C30D.png
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 relationship on edit page
FilamentFFilament / ❓┊help
2y ago
select field display id of record in edit page
FilamentFFilament / ❓┊help
2y ago
spatie-laravel-media-library field empty on edit
FilamentFFilament / ❓┊help
2y ago
Select Dependent Form (Edit Page)
FilamentFFilament / ❓┊help
3y ago