© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•16mo ago•
15 replies
Peppe

Issue on Select Field with a second level relation.

Hi i write a simple Select with second level relation, and when i go to submit he give me this error
 Forms\Components\Select::make('media.tags')
  ->label('Tag')
  ->placeholder('Seleziona')
  ->relationship('media.tags', 'label')
  ->required(),
 Forms\Components\Select::make('media.tags')
  ->label('Tag')
  ->placeholder('Seleziona')
  ->relationship('media.tags', 'label')
  ->required(),
image_2024_10_23T12_12_57_579Z.png
Solution
->pivotData(fn($get) => ['media_id' => $get('media_id') ])
->pivotData(fn($get) => ['media_id' => $get('media_id') ])
Jump to solution
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

Issue with Select field and relationships
FilamentFFilament / ❓┊help
6mo ago
Select field hasMany relation
FilamentFFilament / ❓┊help
3y ago
Two level relation in select
FilamentFFilament / ❓┊help
3y ago
Issue with relationmanager on complicated relation (bug?)
FilamentFFilament / ❓┊help
16mo ago