From 2d725c205a7f700f0143670def471e0b5082a420 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 3 Feb 2017 13:43:35 -0600 Subject: [PATCH] return this --- src/Illuminate/Http/Request.php | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/Illuminate/Http/Request.php b/src/Illuminate/Http/Request.php index a1e7d0247f43..0d0f725ca2dc 100644 --- a/src/Illuminate/Http/Request.php +++ b/src/Illuminate/Http/Request.php @@ -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. * @@ -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. *