Skip to content

Instantly share code, notes, and snippets.

@sethetter
Last active June 9, 2016 15:52
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 sethetter/888a62e00a1f12479b71490868df4f54 to your computer and use it in GitHub Desktop.
Save sethetter/888a62e00a1f12479b71490868df4f54 to your computer and use it in GitHub Desktop.
// Why does this..
->seeJson([
'groups' => [
[
'name' => $group->name,
'docs' => [$doc1->toArray(), $doc2->toArray()]
],
[
'name' => $individual_group->name,
'docs' => [$doc3->toArray()]
]
]
]);
// Result in this?
[ // <---- That's supposed to be a curly brace, what gives?
"groups": [
{
"docs": [
// ...
],
"name":"Maudie Will"
},
{
"docs":[
// ...
],
"name":"Carroll-Hayes"
}
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment