Please help me with the following problem:
I want to make a query request to a MySQL database using a Pagekit QueryBuilder. My code is:
It returns the $query as a multidimensional array. I want it to be an array of objects to push it into a vue.js script that renders the page (otherwise the script doesn't work).
Now I use return [ '$data' = json_decode(json_encode($query))] and everything works, but I think that there should be more elegant solution for this issue. Any ideas?