diff --git a/FormBuilder.php b/FormBuilder.php index 8d666e2..676fdf2 100644 --- a/FormBuilder.php +++ b/FormBuilder.php @@ -76,7 +76,7 @@ class FormBuilder { */ public function open(array $options = array()) { - $method = strtoupper(array_get($options, 'method', 'post')); + $method = array_get($options, 'method', 'post'); // We need to extract the proper method from the attributes. If the method is // something other than GET or POST we'll use POST since we will spoof the @@ -101,10 +101,17 @@ class FormBuilder { // format the array of attributes. We will also add on the appendage which // is used to spoof the requests for PUT and DELETE requests to the app. $attributes = array_merge( + $attributes, array_except($options, $this->reserved) + ); - return '