scode/contact 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

scode/contact

最新稳定版本:1.1.0

Composer 安装命令:

composer require scode/contact

包简介

this will send email to admin and save contact query in database

README 文档

README

this will send email to admin and save contact query in database

Install

composer require scode/contact

set config database in .env file for example:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravelpackage
DB_USERNAME=root
DB_PASSWORD=your database password

#execute migration : php artisan migrate

copy publishes files from Contact Laravel Package to your project:

php artisan vendor:publish

this commnad copy contact.php in config directory

get config/contact.php file and edit send_email_to value with The email address you want to send an email to :

set MAIL config in .env file gmail smtp example :

MAIL_MAILER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
MAIL_USERNAME=soheyla.karimzade@gmail.com
MAIL_PASSWORD= your gmail App passwords 
MAIL_ENCRYPTION=ssl

run laravel server :

php artisan serve

get browser in laravel url project and get /contact route for example :

http://localhost:8000/contact

and fill the contact form and submit , will be sent an email to email address and is created one row on contact table in database .

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-01