F
Filament2mo ago
Max

Is it possible to form a relation on a SelectColumn?

Ive been messing around with relations and cant get a sleect column to populate valus without using a pluck
5 Replies
Max
Max2mo ago
SelectColumn::relationship does not exist.
SelectColumn::relationship does not exist.
bogus
bogus2mo ago
Forms\Components\Select::make('country_id')->relationship('country', 'title'),
Forms\Components\Select::make('country_id')->relationship('country', 'title'),
Max
Max2mo ago
Doesnt work in an table
Max
Max2mo ago
No description
ddoddsr
ddoddsr3w ago
THis works for me in a table. ```use Filament\Tables\Columns\SelectColumn; SelectColumn::make('company_id') ->options(Company::pluck('name', 'id')->toArray()),