anhskohbo / no-captcha

No CAPTCHA reCAPTCHA For Laravel.
https://packagist.org/packages/anhskohbo/no-captcha
MIT License
1.77k stars 234 forks source link

How to add an extra class for submit button? #129

Closed Racterrus closed 5 years ago

Racterrus commented 5 years ago

I use invisible recaptcha, so I create a submit button using {!! NoCaptcha::displaySubmit('my-form-id', 'submit now!', ['data-theme' => 'dark']) !!} As a result i have: <button data-callback="onSubmitloginform" data-sitekey="xxxxxxAAIjtNYEnJiXvwvofhxxxxxxxxxl" class="g-recaptcha"><span>submit now!</span></button> But I have to add additional classes to make a proper style, like <button data-callback="onSubmitloginform" data-sitekey="xxxxxxAAIjtNYEnJiXvwvofhxxxxxxxxxl" class="g-recaptcha class1 class2 class3 btn btn-primary"><span>submit now!</span></button>

How can I do it?

adrianriyadi commented 5 years ago

just use something like this and that's gonna work: {!! NoCaptcha::displaySubmit('my-form-id', 'submit now!', ['class' => 'class1 class2 class3 btn btn-primary']) !!}