bcscoder/contact

此包最新版本(0.0.2)没有可用的许可证信息。

安装: 3

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 1

开放问题: 2

类型:asgard-module

0.0.2 2017-02-23 10:40 UTC

This package is not auto-updated.

Last update: 2024-09-20 22:02:59 UTC


README

安装

composer require bcscoder/contact
  1. 从设置页面激活权限。
  2. https://www.google.com/recaptcha上配置Recaptcha登录并创建新网站。

在设置 > 联系信息中输入您的站点密钥和密钥。

  1. 添加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

必填字段

  1. first_name
  2. last_name
  3. email
  4. phone
  5. message