This attempts to fix#510 even though the example provided by @zsoltgyure isn't actually using route model binding.
This bugfix was tested and works with the following.
Non-route model binding:
```
{{ Form::open(['route' => ['mytest', [$file->id]]]) }}
```
Another non-route model binding:
```
{{ Form::open(['route' => ['mytest', $file->id]]) }}
```
Multiple models into route model binding:
```
{{ Form::open(['route' => ['manage.files.delete', [$currentPodcast, $file]]]) }}
```
Single model into route model binding:
```
{{ Form::open(['route' => ['manage.podcast.delete', $currentPodcast]]) }}
```
* Fixed bug with radio button not being checked
Fixes: https://github.com/LaravelCollective/html/issues/496
Loose comparison needs to be done because Laravel model casting may be in affect and therfore 1 == true and 0 == false.
* typo
* Form method of hidden input '_method' is preserved on next request
E.G. When you submitted data across a form with a 'PATCH' method and then in a second submit you use a form with a 'DELETE' method, the FormBuilder::getValueAttribute() method use the previous value of the hidden input '_method'.
So the value is replaced by 'PATCH' instead of the 'DELETE' value.
* Drop PHP 7.1 and add PHP 7.2 in Travis CI config
Because Laravel 5.6 require at least PHP 7.1.3
* Fix PHP 7.2 Warning with count()
Otherwise a PHP Warning is thrown:
count(): Parameter must be an array or an object that implements Countable
See http://php.net/manual/en/migration72.incompatible.php#migration72.incompatible.warn-on-non-countable-types
* Bump Mockery version to support PHP 7.2
* Form method of hidden input '_method' is preserved on next request
E.G. When you submitted data across a form with a 'PATCH' method and then in a second submit you use a form with a 'DELETE' method, the FormBuilder::getValueAttribute() method use the previous value of the hidden input '_method'.
So the value is replaced by 'PATCH' instead of the 'DELETE' value.
* Drop PHP 7.1 and add PHP 7.2 in Travis CI config
Because Laravel 5.6 require at least PHP 7.1.3
* Fix PHP 7.2 Warning with count()
Otherwise a PHP Warning is thrown:
count(): Parameter must be an array or an object that implements Countable
See http://php.net/manual/en/migration72.incompatible.php#migration72.incompatible.warn-on-non-countable-types
* Bump Mockery version to support PHP 7.2
* Laravel 5.6 stable support
* fixed bug where opt group attributes where passed to option, added opt group attributes to opt group
* dropped php 7.0 because Laravel minimum requirement is now php 7.1.3
* fix optionGroup and added a function to handle recursively the arrays
* simplify recursively
* fix codestyle
* fix codestyle
* add new parameter annotation