bcscoder / contact
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 2
Type:asgard-module
Requires
- php: >=5.4
- asgardcms/core-module: ~1.0
- composer/installers: ~1.0
- google/recaptcha: ~1.1
Requires (Dev)
- orchestra/testbench: ~3.1
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2024-11-15 22:47:36 UTC
README
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
- Add Recaptcha Js <script src='https://www.google.com/recaptcha/api.js'></script>
How to use
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