8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f07d75 commit 081f467Copy full SHA for 081f467
src/Illuminate/Testing/TestResponse.php
@@ -1349,9 +1349,10 @@ protected function session()
1349
/**
1350
* Dump the content from the response.
1351
*
1352
+ * @param string|null $key
1353
* @return $this
1354
*/
- public function dump()
1355
+ public function dump($key = null)
1356
{
1357
$content = $this->getContent();
1358
@@ -1361,7 +1362,11 @@ public function dump()
1361
1362
$content = $json;
1363
}
1364
- dump($content);
1365
+ if (! is_null($key)) {
1366
+ dump(data_get($content, $key));
1367
+ } else {
1368
+ dump($content);
1369
+ }
1370
1371
return $this;
1372
0 commit comments