I have decided to use Eloquent for a little project of mine, I want queries to come back as an Associative Array instead of an Object.
I have tried ->get()->toArray() , but this does not seem to be doing the trick.
Are there any settings I can change to make all queries to be in an Array?
I have tried - $capsule->setFetchMode(PDO::FETCH_ASSOC); but this doesn’t seem to work either.
At the minute I am doing json_decode(json_encode)) but this seems a little messy?
Thank you, Appreciate any help.