F
Filament10mo ago
Mina

Searchable relationship

Hi, I am kinda new to filament still, maybe this was responded before but I really need help. I need to make the orders searchable by Funnel title. This is my relationship: public function funnelRelation(): BelongsTo { return $this->belongsTo(Funnel::class, 'funnel_id', 'id'); } This is the table column: Tables\Columns\TextColumn::make('funnelRelation.title')->label('Funnel')->searchable()->sortable(), I tried adding 'funnelRelation.title' as a condtition in searchale but I just get an error.
1 Reply
toeknee
toeknee10mo ago
What was the error?
Want results from more Discord servers?
Add your server