© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
7 replies
MikeG

Best practice working with JSON fields in model & Table Builder

Hello!

Im trying to make a table widget, but im confused on how I can get values that live within a JSON column to be shown..

I have a JSON column called
payload
payload
which for example contains
{"foo": "bar", "example2": "value2"}
{"foo": "bar", "example2": "value2"}


How do I now have 2 columns in the table builder that are TextColumns which show the values from "foo" and "example2" ?
Solution
Ah, it was as simple as doing
payload.key
payload.key
Jump to solution
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

Filament V4 - Best practice on multi language json fields ?
FilamentFFilament / ❓┊help
5mo ago
Exporter Importer on JSON model fields
FilamentFFilament / ❓┊help
2y ago
Calculated fields in form builder
FilamentFFilament / ❓┊help
3y ago