alexlords
1 week ago

Decode Json in eloquent Search

Posted 1 week ago by alexlords

"campaigns"=>Campaign::all()->toArray()

this is my eloquent, it gets all the records, i have multiple records, one of those records is in json format,

how can i decode this json ?

[23-May-2020 12:49:40 UTC] Array ( [id] => 3 [owner_id] => 1 [client_id] => [channel_id] => [channel_table] => [title] => test campaign [resource] => "{"description":"testing Json description of new campaign"}" [archive] => 0 [delete] => 0 [created_at] => 2020-05-22 20:15:33 [updated_at] => 2020-05-22 20:15:33 )

Please sign in or create an account to participate in this conversation.