From 41e066e2eec5e496b48abfa94c7d50e681c9d0a7 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 21 Mar 2012 10:49:09 -0500 Subject: [PATCH] Fix macros method. --- laravel/form.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/laravel/form.php b/laravel/form.php index bd16787d..63d2d9f5 100644 --- a/laravel/form.php +++ b/laravel/form.php @@ -580,9 +580,9 @@ class Form { */ public static function __callStatic($method, $parameters) { - if (isset(static::$inputs[$method])) + if (isset(static::$macros[$method])) { - return call_user_func_array(static::$inputs[$method], $parameters); + return call_user_func_array(static::$macros[$method], $parameters); } throw new \Exception("Method [$method] does not exist.");