skrskr/contact
Composer 安装命令:
composer require skrskr/contact
包简介
This package send mail to admin and save contact us message
README 文档
README
This package send mail to admin and save contact us message
Installation
Require via composer
$ composer require skrskr/contact
if laravel version < laravel 5.5
Add ContactServiceProvider to app.php
In config/app.php file
'providers' => [ ... SkrSkr\Contact\ContactServiceProvider::class, ... ];
Runing
Migrate contact model migrations
$ php artisan migrate
Run development server
$ php artisan serve
Hit contact form url
http://localhost:8000/contact
Customization
Run this command to generate the contact.php configuration file, vendor/contact folder for views
$ php artisan vendor:publish
Change admin mail in contact.php
"send_mail_to" => "admin@exmaple.com",
Customize contact us form in vendor/contact/contact.blade.php blade file.
Customize contact us mail style in vendor/contact/contact/email.blade.php blade file.
Screenshot
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-10-15
