From 338b74c1427d4786f041669b6085266f156153a2 Mon Sep 17 00:00:00 2001 From: Kelly Banman Date: Thu, 31 May 2012 16:15:55 -0700 Subject: [PATCH] Render Responses when cast as string Signed-off-by: Kelly Banman --- laravel/response.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/laravel/response.php b/laravel/response.php index e5472430..b6fa4d84 100644 --- a/laravel/response.php +++ b/laravel/response.php @@ -334,4 +334,14 @@ class Response { } } + /** + * Render the response when cast to string + * + * @return string + */ + public function __toString() + { + return $this->render(); + } + } \ No newline at end of file