F
Filament16mo ago
lazydog

Table column

Hi, I have a db table that has field with json/array values.
'column1' => 'columnvalue1',
'column2' => 'columnvalue2',
'column3' => [
'key1' => 'value1',
'key2' => 'value2',
'key3' => 'value3',
]
'column1' => 'columnvalue1',
'column2' => 'columnvalue2',
'column3' => [
'key1' => 'value1',
'key2' => 'value2',
'key3' => 'value3',
]
Output should be
'column1' => 'columnvalue1',
'column2' => 'columnvalue2',
'key1' => 'value1',
'key2' => 'value2',
'key3' => 'value3'
'column1' => 'columnvalue1',
'column2' => 'columnvalue2',
'key1' => 'value1',
'key2' => 'value2',
'key3' => 'value3'
How can I do this?
1 Reply
Dennis Koch
Dennis Koch16mo ago
I think you are looking for Arr::flatten(). You could use that inside formatStateUsing()
Want results from more Discord servers?
Add your server