Render Responses when cast as string

Signed-off-by: Kelly Banman <kelly.banman@gmail.com>
This commit is contained in:
Kelly Banman 2012-05-31 16:15:55 -07:00
parent e35ec6b390
commit 338b74c142
1 changed files with 10 additions and 0 deletions

View File

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