Skip to content

Commit

Permalink
return this
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 3, 2017
1 parent 9a1c5f3 commit 2d725c2
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/Illuminate/Http/Request.php
Expand Up @@ -302,17 +302,6 @@ public function json($key = null, $default = null)
return data_get($this->json->all(), $key, $default);
}

/**
* Set the JSON payload for the request.
*
* @param array $json
* @return void
*/
public function setJson($json)
{
$this->json = $json;
}

/**
* Get the input source for the request.
*
Expand Down Expand Up @@ -460,6 +449,19 @@ public function fingerprint()
)));
}

/**
* Set the JSON payload for the request.
*
* @param array $json
* @return $this
*/
public function setJson($json)
{
$this->json = $json;

return $this;
}

/**
* Get the user resolver callback.
*
Expand Down

0 comments on commit 2d725c2

Please sign in to comment.