Browse Source

Make view::with value optional.

Taylor Otwell 12 years ago
parent
commit
991fc70275
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/view.php

+ 1 - 1
laravel/view.php

@@ -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))
 		{