mutateFormDataBefore for List

Is there something like a mutateFormDataBeforeShow method to edit the data before they are shown in the list?
7 Replies
awcodes
awcodes16mo ago
I think there's a mutateFormDataBeforeFill
GeRaged | Niklas
GeRaged | NiklasOP16mo ago
the method does not exists In the ListModel class is no mutate method at all
awcodes
awcodes16mo ago
oh, you're using a table. those don't exist on tables. only thing you can do there is modify the eloquent query
GeRaged | Niklas
GeRaged | NiklasOP16mo ago
but why is there not mutate method...?
awcodes
awcodes16mo ago
because it's an eloquent query, there's nothing to mutate the query is the query but you can query the data with any 'mutations' you need.
toeknee
toeknee16mo ago
Do you want formatStateUsing ? this allows you to customise the display within the table
awcodes
awcodes16mo ago
yea, formatState might be more of what you're looking for. if i'm guessing right.
Want results from more Discord servers?
Add your server