Instalasi
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, (*1)
- Add Recaptcha Js
How to use
Create form for contact us and add sample code below, (*2)
{!! Form::open( ['url' => route('contact.send'), 'method' => 'post'] ) !!}
add recaptcha, (*3)
@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
1. first_name
2. last_name
3. email
4. phone
5. message
, (*4)