sanjeev-labs/laravel-contact-us
Composer 安装命令:
composer require sanjeev-labs/laravel-contact-us
包简介
Laravel contact us form with Google recaptcha
README 文档
README
Contact us form for laravel applications. Receive emails from contact us form with spam protection through Google reCaptcha V2.
Installation via composer
- Run below command
composer require sanjeev-labs/laravel-contact-us
-
Add provider Sanjeevlabs\Contact\ContactServiceProvider::class in your providers list in config/app.php
-
Run below command, scaffold the controller and views.
php artisan make:contact
- Run below command to publish configuration contact.php in your config directory.
php artisan vendor:publish --tag=config
Configuration Changes
- In config/contact.php replace SITE_KEY with your site key of Google reCaptcha. And replace SECRET_KEY with your secret key of Google reCaptcha. If you don't have site and secret keys, you can get from here.
- In config/contact.php replace 'Owner' with your desired name.
- In config/contact.php replace 'owner@example.com' with your email address where you want to receive emails.
View Changes
- To change the layout design or to add more fields, make changes in resources/views/contact/contact.blade.php and/or resources/views/contact/layout.blade.php files.
Email Changes
- To change in the email designs or to add more fields, make changes in resources/views/emails/contact/contact.blade.php and/or resources/views/emails/contact/contact-confirm.blade.php files.
统计信息
- 总下载量: 35
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-02-18