From 991fc70275718cbeaf35eda70f772e09b4957d60 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 24 Mar 2012 22:39:23 -0500 Subject: [PATCH] Make view::with value optional. --- laravel/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/view.php b/laravel/view.php index 4b649ceb..9562d2e7 100644 --- a/laravel/view.php +++ b/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)) {