Passing JSON key to $wire.updateTableColumnState, in a custom column

Hi, i'm having trouble to replicate something i did with a toggle column, with my toggle column if i did it like this ToggleColumn::make('itens.'.$key.'.Delivered') It would change the value correctly, but i need to iterate thru a whole json, so i made a custom column but in the method updateTableColumnState() if i try to the name with a key, it doesn't change anything nor throw a error
No description
1 Reply
Firebat
FirebatOP3mo ago
i figured it out why it works with the toggle column, in the debugbar it shows update entregas set itens = '[{"Nome":"Entregas teste","Entregue":true}]', entregas.updated_at = '2024-09-16 14:38:31' where id = 1 and on my code it does select count(*) as aggregate from entregas where entregas.projetos_id = 1 and entregas.projetos_id is not null any idea on how to fix this issue?
Want results from more Discord servers?
Add your server