Fix some inputs treated like nestedModel when using an accessor (#471)
* 5.6 Prep * Added $optgroupsAttributes parameter to select method. * escape HTML entities in `src`-attribute * Style fixes. Replaced == with ===.
This commit is contained in:
1 parent
7e49960e8f
commit
2c5db92f66
6 files changed
+83
-34
No files matched your search
@@ -87,7 +87,7 @@ trait FormAccessible
|
||||
|
||||
$mutator = collect($methods)
|
||||
->first(function (ReflectionMethod $method) use ($key) {
|
||||
return $method->getName() == 'form' . Str::studly($key) . 'Attribute';
|
||||
return $method->getName() === 'form' . Str::studly($key) . 'Attribute';
|
||||
});
|
||||
|
||||
return (bool) $mutator;
|
||||
|
||||
Reference in new issue
Block a user