© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
18 replies
Wirkhof

Custom query for table column text

I am storing an array of IDs in a table column
car_liked
car_liked
which is a multiple select input field , e.g.
["34","134","159"]
["34","134","159"]
.

And in the table view I want to show not the IDs stored, but the names of those cars. So, I need to make a query to get records 34, 134, 159 and pluck the name of each of those rows and echo it in the table list view column car_liked.

How to do that?

Currently, I am doing this, but it outputs just the IDs separated by the coma. like
34, 134, 159
34, 134, 159


But I would like to have
Ford Bronco, VW Golf, Audi Q5
Ford Bronco, VW Golf, Audi Q5
instead.

My code is:

                Tables\Columns\TextColumn::make('car_liked')
                    ->label(__('Car Liked'))
                    ->sortable()
                    ->searchable(),
                Tables\Columns\TextColumn::make('car_liked')
                    ->label(__('Car Liked'))
                    ->sortable()
                    ->searchable(),
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

Custom query table
FilamentFFilament / ❓┊help
3y ago
Custom table column - sizing
FilamentFFilament / ❓┊help
9mo ago
Table Custom Column Update.
FilamentFFilament / ❓┊help
2y ago
Custom Column In Table
FilamentFFilament / ❓┊help
3y ago