bcscoder / contact
此包最新版本(0.0.2)没有可用的许可证信息。
0.0.2
2017-02-23 10:40 UTC
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-09-20 22:02:59 UTC
README
安装
composer require bcscoder/contact
- 从设置页面激活权限。
- 在https://www.google.com/recaptcha上配置Recaptcha登录并创建新网站。
在设置 > 联系信息中输入您的站点密钥和密钥。
- 添加Recaptcha Js <script src='https://www.google.com/recaptcha/api.js'></script>
使用方法
创建联系我们表单并添加以下示例代码
{!! Form::open( ['url' => route('contact.send'), 'method' => 'post'] ) !!}
添加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
必填字段
first_namelast_nameemailphonemessage