Skip to content

Commit

Permalink
Merge pull request #45 from rene-springmann/master
Browse files Browse the repository at this point in the history
Compatibility to laravelcollective/html v5.4.8
  • Loading branch information
bllim committed Jun 12, 2017
2 parents 0898369 + 87f0b67 commit 290c68e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"require": {
"php": ">=5.3.0",
"laravelcollective/html": "^5.4",
"laravelcollective/html": "^5.4.8",
"illuminate/support": ">=4.2",
"illuminate/validation": ">=4.0",
"illuminate/routing": ">=4.0"
Expand Down
7 changes: 4 additions & 3 deletions src/Bllim/Laravalid/FormBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,12 @@ public function textarea($name, $value = null, $options = [])
/**
* @see Illuminate\Html\FormBuilder
*/
public function select($name, $list = [], $selected = null, $options = [])
public function select($name, $list = [], $selected = null, array $selectAttributes = [], array $optionsAttributes = [])
{
$options = $this->converter->convert(Helper::getFormAttribute($name)) + $options;
$optionsAttributes = $this->converter->convert(Helper::getFormAttribute($name)) + $optionsAttributes;
$selectAttributes = $this->converter->convert(Helper::getFormAttribute($name)) + $selectAttributes;

return parent::select($name, $list, $selected, $options);
return parent::select($name, $list, $selected, $selectAttributes, $optionsAttributes);
}

protected function checkable($type, $name, $value, $checked, $options)
Expand Down

0 comments on commit 290c68e

Please sign in to comment.