Zakhaev
Accessing accessor trough a relationship
Alright thank you for your answer. But how would i make a textcolumn from a eloquentaccessor. Maybe that is easier to explain. I just want to use a field that is filtered thats why im using a accessor
12 replies
Accessing accessor trough a relationship
Hey thanks for to reply.
Initially its a check for the additionalLineItems model.
So the additionalLineItems model has multiple rows connected to a line item.
This is how its stored. In additionalLineItems.
Total=100
TotalVat=50
And in my invoice resource, that has a lineitem. I want to display a column in the table giving me the totalVat.
Its a bit hard to explain but i hope im explaining it good
12 replies