This seems like a very basic question, but I just cannot figure it out. I am trying to parse through this array in a blade template.
I am saving data to a session variable that is an array. When I dd the variable in the view I get this...
"[["Less than $50,000","$50,000-$100,000","More than $100,000"],["Step2-option1","Step2-option2"],["Step3-option2"]]"
It looks like it's saving to the database as a string instead of an array. Is that correct? When I try to dd($variable[0]) I only get "[". If it is a string, I need to be saving it another way or at least taking this and converting it back to an array.
Each piece of this "array" is from a multi-step form that I am aggregating into a session variable using Session::push();
Thanks for your help!
json_decodefirst? then show us the new result. addtruealso as the 2nd parameter.