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

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

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

anwar7736/contact

Composer 安装命令:

composer require anwar7736/contact

包简介

Send email to the website admin and its store to the database table

README 文档

README

This is a contact us package. When any visitor visit your website (Contact us page) and they can send a message to you. This package automatically send a mail to you and it's store to your database table.

Installation

composer require anwar7736/contact

Configuration

  1. Open config/app.php and add this line to your Service Providers Array.
Anwar\Contact\ContactServiceProvider::class
  1. Optional configuration file (useful if you plan to have full control)
php artisan vendor:publish --provider="Anwar\Contact\ContactServiceProvider"
  1. Check your database connection and run this command
php artisan migrate
  1. Open your .env file and check your mail configuration
MAIL_MAILER=smtp
MAIL_HOST=sandbox.smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=username
MAIL_PASSWORD=password
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=example@gmail.com
MAIL_FROM_NAME="${APP_NAME}"

Basic usage

  1. No need to add this route in your web.php file you can only use this route from your controller or your blade file.
Route::get('/contact', 'index')->name('contact');

Thank You

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-27