This commit is contained in:
Torsten 2018-08-07 10:42:11 +02:00
parent 98419bd18d
commit 8a69e45efa
4919 changed files with 28311 additions and 224136 deletions

0
pfosten/vendor/laravelcollective/html/src/Componentable.php vendored Executable file → Normal file
View file

View file

9
pfosten/vendor/laravelcollective/html/src/FormBuilder.php vendored Executable file → Normal file
View file

@ -741,9 +741,7 @@ class FormBuilder
$options = [
'selected' => $selected,
'disabled' => 'disabled',
'hidden' => 'hidden',
'value' => ''
'value' => '',
];
return $this->toHtmlString('<option' . $this->html->attributes($options) . '>' . e($display) . '</option>');
@ -760,7 +758,7 @@ class FormBuilder
protected function getSelectedValue($value, $selected)
{
if (is_array($selected)) {
return in_array($value, $selected, true) ? 'selected' : null;
return in_array($value, $selected, true) || in_array((string) $value, $selected, true) ? 'selected' : null;
} elseif ($selected instanceof Collection) {
return $selected->contains($value) ? 'selected' : null;
}
@ -1192,11 +1190,10 @@ class FormBuilder
* Get the model value that should be assigned to the field.
*
* @param string $name
* @param mixed $model
*
* @return mixed
*/
protected function getModelValueAttribute($name, $model = null)
protected function getModelValueAttribute($name)
{
$key = $this->transformKey($name);

0
pfosten/vendor/laravelcollective/html/src/FormFacade.php vendored Executable file → Normal file
View file

0
pfosten/vendor/laravelcollective/html/src/HtmlFacade.php vendored Executable file → Normal file
View file

0
pfosten/vendor/laravelcollective/html/src/helpers.php vendored Executable file → Normal file
View file