F
Filament4mo ago
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()))
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server