new-vendor/contactform
最新稳定版本:v1.0.2
Composer 安装命令:
composer require new-vendor/contactform
包简介
laravel contact form package
README 文档
README
step 1: (in terminal)
composer require new-vendor/contactform
step 2: (in .env file)
ADMIN_EMAIL="example@gmail.com"
step 3: (write below command to publish your package)
php artisan vendor:publish --tag=contactform-config
step 4: (run migration command since we have contacts table)
php artisan migrate
step 5: (in .env setup below code to send email)
MAIL_MAILER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
MAIL_USERNAME=example@gmail.com
MAIL_PASSWORD=your_mail_password
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=example@gmail.com
MAIL_FROM_NAME="${APP_NAME}"
step 6:
go to /contact url for to use contact us form
step 7: (optional)
if you have contact us form in another page with name,email,subject and message then you can do post request in /submit/message url or in route('submit.message')
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-03