Merge pull request #743 from kbanman/response-fix

Render Response objects when casting as string
This commit is contained in:
Taylor Otwell
2012-06-03 15:34:31 -07:00

View File

@@ -334,4 +334,14 @@ class Response {
}
}
/**
* Render the response when cast to string
*
* @return string
*/
public function __toString()
{
return $this->render();
}
}