Merge pull request #743 from kbanman/response-fix
Render Response objects when casting as string
This commit is contained in:
commit
1b71a0ed89
|
@ -334,4 +334,14 @@ public function status($status = null)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Render the response when cast to string
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return $this->render();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue