File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -404,7 +404,7 @@ You cannot mix `ApplyAttribute` with automatic fallthrough attributes. Opting to
404404
405405To exclude specific attributes from falling through, configure your ` button ` view component like this:
406406``` html x-button.view.php
407- <button :apply =" $attributes->diffKeys(array_flip( ['id', 'style']) )" >
407+ <button :apply =" $attributes->without( ['id', 'style'])" >
408408 <x-slot />
409409</button >
410410```
@@ -424,7 +424,7 @@ Will result in:
424424
425425To include only specific attributes, configure your ` button ` view component like this:
426426``` html x-button.view.php
427- <button :apply =" $attributes->intersectKeys(array_flip( ['class', 'width', 'height']) )" >
427+ <button :apply =" $attributes->with( ['class', 'width', 'height'])" >
428428 <x-slot />
429429</button >
430430```
You can’t perform that action at this time.
0 commit comments