F
Filament6mo 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
MaxOP6mo ago
SelectColumn::relationship does not exist.
SelectColumn::relationship does not exist.
bogus
bogus6mo ago
Forms\Components\Select::make('country_id')->relationship('country', 'title'),
Forms\Components\Select::make('country_id')->relationship('country', 'title'),
Max
MaxOP6mo ago
Doesnt work in an table
Max
MaxOP6mo ago
No description
ddoddsr
ddoddsr6mo ago
THis works for me in a table. ```use Filament\Tables\Columns\SelectColumn; SelectColumn::make('company_id') ->options(Company::pluck('name', 'id')->toArray()),
Want results from more Discord servers?
Add your server