- Laravel Version: 7.0.8
- PHP Version: 7.2.26
- Database Driver & Version: n/a
Description:
With a component that simply prints it's attributes:
<input {{ $attributes }} />
If the component is used like this:
<x-input :disabled="false" />
We would expect the rendered template to be:
But the current implementation renders:
But if the component uses merge() like this:
<input {{ $attributes->merge() }} />
The output is what one would expect:
It's debatable how an attribute with a boolean value should be handled, but at least $attribute and $attribute->merge() should give identical output, right?