Custom Column In Table
I have two models. Estimates & Dockets. Relationships are setup in that an Estimate HasOne Docket.
Both estimate and docket tables have a title field.
I am working on a custom search/table.
I want the docket title to show up instead of the estimate title on the TITLE column only if a docket exists. eg
But I cannot work out how to get that into a singular column.
Any help would be appreciated. Thank you
3 Replies
ended up with this: but I welcome a better solution if there is one 🙂
Does
->getStateUsing()
work?
Or even ->formatStateUsing()
?I’d need to look into those and see how differently it affects things. Thanks