I have a query that I call with:
$query = "select * from myTable";
$results = DB::connection('myDB')->select($query);
I want to be able to get this in the simple json format of:
[{firstColumn: firstColumnValue, secondColumn: secondColumnValue},
{firstColumn: firstColumnValue, secondColumn: secondColumnValue}]
What is the easiest way to achieve this?