© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•17mo ago•
7 replies
pauldragoonis

Custom Table Values

Hey, I have a List table view here, and my entity (model) doesn't actually have the values .. they're in another table.

I need to control the point where it grabs the value.

I saw on the v1.0 docs (accidentally landed there) that we can do Column->getValueUsing(), which I thought might have been right, but i'm on v3 now.

Here is the code I was trying, before I discovered getValueUsing() is deprecated technique

 php
return $table
->columns([
        
    TextColumn::make('name')
        ->searchable(),
    Column::make('benefits')
        ->label('Benefits')
        ->getValueUsing($callback = fn($record) => $this->getBenefitsTextFromIngredient($record)),
 php
return $table
->columns([
        
    TextColumn::make('name')
        ->searchable(),
    Column::make('benefits')
        ->label('Benefits')
        ->getValueUsing($callback = fn($record) => $this->getBenefitsTextFromIngredient($record)),
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 text columns, calculated values, sum of related table values.
FilamentFFilament / ❓┊help
3y ago
Computed table values
FilamentFFilament / ❓┊help
3y ago
Custom table
FilamentFFilament / ❓┊help
7mo ago
Get table filter values
FilamentFFilament / ❓┊help
2y ago