08-06-2023, 03:08 PM
Laravel output:
Array
(
[0] = stdClass Object
(
[ID] = 5
)
[1] = stdClass Object
(
[ID] = 4
)
)
I want to convert this into normal array. Just want to remove that `stdClass Object`. I also tried using `->toArray();` but I get an error:
>Call to a member function toArray() on a non-object.
How can I fix this?
Functionalities have been Implemented on
Array
(
[0] = stdClass Object
(
[ID] = 5
)
[1] = stdClass Object
(
[ID] = 4
)
)
I want to convert this into normal array. Just want to remove that `stdClass Object`. I also tried using `->toArray();` but I get an error:
>Call to a member function toArray() on a non-object.
How can I fix this?
Functionalities have been Implemented on
[To see links please register here]