Closed lukeraymonddowning closed 3 years ago
Previously, you would need to declare 2 components in a form if you wanted honey and recaptcha:
<form method="POST"> @csrf <x-honey/> <x-honey-recaptcha action="submit"/> <input type="text" name="name"> <input type="email" name="email"> <input type="submit" value="Submit"> </form>
This PR allows you to optionally declare them in a single component by adding the recaptcha attribute to the <x-honey/> component.
recaptcha
<x-honey/>
<form method="POST"> @csrf <x-honey recaptcha="submit"/> <input type="text" name="name"> <input type="email" name="email"> <input type="submit" value="Submit"> </form>
The README will need updating to reflect this, but I will wait until I have enough changes in to warrant creating a new release.
Previously, you would need to declare 2 components in a form if you wanted honey and recaptcha:
This PR allows you to optionally declare them in a single component by adding the
recaptcha
attribute to the<x-honey/>
component.