Make view::with value optional.

This commit is contained in:
Taylor Otwell
2012-03-24 22:39:23 -05:00
parent 9dbbc5848b
commit 991fc70275

View File

@@ -390,7 +390,7 @@ class View implements ArrayAccess {
* @param mixed $value * @param mixed $value
* @return View * @return View
*/ */
public function with($key, $value) public function with($key, $value = null)
{ {
if (is_array($key)) if (is_array($key))
{ {