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 @@ public function status($status = null) } } + /** + * Render the response when cast to string + * + * @return string + */ + public function __toString() + { + return $this->render(); + } + } \ No newline at end of file