composer require bcscoder/contact
- Activate permission from setting page.
- Config Recaptcha login and create new website to : https://www.google.com/recaptcha
Input your site key and secret key to Setting > Contact
- Add Recaptcha Js <script src='https://www.google.com/recaptcha/api.js'></script>
Create form for contact us and add sample code below
{!! Form::open( ['url' => route('contact.send'), 'method' => 'post'] ) !!}
add recaptcha
@if(setting('contact::security') == 1)
<div class="form-group">
<label>Human verification</label>
<div class="g-recaptcha" data-sitekey="{{ setting('contact::site-key') }}"></div>
</div>
@endif
Required field
first_name
last_name
email
phone
message