Access JSON and display in a table
Hey, probably I am overlooking something really obvious.
I have a table and in that want to access a JSON that is stored in a database column in another model.
When trying to debug with log::info it is displaying me the info correctly, but I am not sure how to let ->query use the data in the JSON
My code for accessing the JSON looks like this:
For the log::info I receive back my test entry of
"[{"shift_id":1,"shift_type":"TestType","shift_description":"TestDescription","shift_duration":25,"shift_date":"2024-11-27","shift_supervisor":["John Doe"]}]"
I have a table and in that want to access a JSON that is stored in a database column in another model.
When trying to debug with log::info it is displaying me the info correctly, but I am not sure how to let ->query use the data in the JSON
My code for accessing the JSON looks like this:
For the log::info I receive back my test entry of
"[{"shift_id":1,"shift_type":"TestType","shift_description":"TestDescription","shift_duration":25,"shift_date":"2024-11-27","shift_supervisor":["John Doe"]}]"
