I guess your $var is an array, so you could access its keys like this:
URL::route('find-category', array('category' => $var['category'] ))
2u3 said:
I guess your $var is an array, so you could access its keys like this:
URL::route('find-category', array('category' => $var['category'] ))
Cannot use object of type stdClass as array - any other solutions?
Hm, I don't get it. So I understand that you have an array containing multiple stdClass objects, and you should be able to access them like this:
URL::route('find-category', array('category' => $var->category ))
Edit : my previous example was in case you have an multidimensional array (array of arrays)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community