Is it possible to make searchable column on relation?

Hi guys, is it possible to search on table on relation?
Tables\Columns\TextColumn::make('clientable.name')
    ->label(__('Name'))
    ->icon(fn (Client $record) => match($record->clientable->getMorphClass()) {
        'person' => 'heroicon-o-user',
        'company' => 'heroicon-o-building-library',
    })
    ->searchable(['clientable.name']),
Was this page helpful?