Commit 1b71a0ed by Taylor Otwell

Merge pull request #743 from kbanman/response-fix

Render Response objects when casting as string
parents 5cb8b9bf 338b74c1
...@@ -334,4 +334,14 @@ class Response { ...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment