Commit 338b74c1 authored by Kelly Banman's avatar Kelly Banman

Render Responses when cast as string

Signed-off-by: 's avatarKelly Banman <kelly.banman@gmail.com>
parent e35ec6b3
......@@ -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