Render Responses when cast as string
Signed-off-by: Kelly Banman <kelly.banman@gmail.com>
This commit is contained in:
parent
e35ec6b390
commit
338b74c142
|
@ -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