how to get data relationship from table text column in description
i just want to group like stock quantity then below its description from relationship can or not ?
6 Replies
i just want like this but how to get data description relationship ?
Description supports callbacks. There is an example in the docs, just reference the relationship on your model as normal within the callback.
Assuming the relationship name is stock and you want to show the stock's description:
https://filamentphp.com/docs/3.x/tables/columns/text#displaying-a-description
You may have to tweak for your use case but this is what I think you're looking for.
already try like this but i got error like this
my code
already try then how to get data string ?
Solution
solve with code like this :