Commit 991fc702 authored by Taylor Otwell's avatar Taylor Otwell

Make view::with value optional.

parent 9dbbc584
......@@ -390,7 +390,7 @@ class View implements ArrayAccess {
* @param mixed $value
* @return View
*/
public function with($key, $value)
public function with($key, $value = null)
{
if (is_array($key))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment