Created
June 5, 2013 17:24
-
-
Save dolansgists/5715630 to your computer and use it in GitHub Desktop.
Laravel: Merge results of eloquent queries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$array = array_merge($query1->toArray(), $query2->toArray()); | |
return Response::json($array); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how to limit result view of array_merge?