From 6eda87dc475a6fe3ee94f8eed5ef8051fde90b9c Mon Sep 17 00:00:00 2001 From: Eluia Date: Tue, 23 May 2017 10:25:36 +0200 Subject: [PATCH 1/2] Update Form.php Fix the change to the "select" function declaration in laravelcollective formbuilder --- src/Bootstrapper/Form.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/Bootstrapper/Form.php b/src/Bootstrapper/Form.php index b247d266..196527ff 100644 --- a/src/Bootstrapper/Form.php +++ b/src/Bootstrapper/Form.php @@ -270,20 +270,22 @@ public function inlineModel($model, $attributes = []) * @param string $name * @param array $list * @param null $selected - * @param array $attributes + * @param array $selectAttributes + * @param array $optionsAttributes * @return string */ public function select( $name, - $list = array(), + $list = [], $selected = null, - $attributes = array() + array $selectAttributes = [], + array $optionsAttributes = [] ) { - $attributes['class'] = isset($attributes['class']) ? - self::FORM_CONTROL . ' ' . $attributes['class'] : + $selectAttributes['class'] = isset($selectAttributes['class']) ? + self::FORM_CONTROL . ' ' . $selectAttributes['class'] : self::FORM_CONTROL; - return parent::select($name, $list, $selected, $attributes); + return parent::select($name, $list, $selected, $selectAttributes, $optionsAttributes); } /** From ea5401117c412d1e057e5d27ca4c85345582cccd Mon Sep 17 00:00:00 2001 From: Eluia Date: Tue, 23 May 2017 10:56:25 +0200 Subject: [PATCH 2/2] Update Form.php --- src/Bootstrapper/Form.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Bootstrapper/Form.php b/src/Bootstrapper/Form.php index 196527ff..d9a165dd 100644 --- a/src/Bootstrapper/Form.php +++ b/src/Bootstrapper/Form.php @@ -276,10 +276,10 @@ public function inlineModel($model, $attributes = []) */ public function select( $name, - $list = [], + $list = array(), $selected = null, - array $selectAttributes = [], - array $optionsAttributes = [] + array $selectAttributes = array(), + array $optionsAttributes = array() ) { $selectAttributes['class'] = isset($selectAttributes['class']) ? self::FORM_CONTROL . ' ' . $selectAttributes['class'] :