Skip to content

Instantly share code, notes, and snippets.

@dolansgists
Created June 5, 2013 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dolansgists/5715630 to your computer and use it in GitHub Desktop.
Save dolansgists/5715630 to your computer and use it in GitHub Desktop.
Laravel: Merge results of eloquent queries
$array = array_merge($query1->toArray(), $query2->toArray());
return Response::json($array);
@soydara
Copy link

soydara commented May 14, 2018

how to limit result view of array_merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment