定制 itsrafsanjani/contact 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

itsrafsanjani/contact

Composer 安装命令:

composer require itsrafsanjani/contact

包简介

Laravel contact us form package to send email and save to database

README 文档

README

preview image

Contact

Latest Stable Version Total Downloads License

A Laravel Package to create Contact Us Form Easily

Features

  • Send Email
  • Save Message to Database

Requirements

Laravel 5.7+ Tested on Laravel 8

Installation Steps

1. Require the Package

Run the following command:

composer require itsrafsanjani/contact

2. Add the service provider to your config/app.php providers array:

If you're installing on Laravel 5.5+ skip this step

ItsRafsanJani\Contact\ContactServiceProvider::class,

3. Run Migration

Run the following command:

php artisan migrate

4. Edit .env File

Add variable CONTACT_TO_MAIL to .env and then define the email to receive email

For example

CONTACT_TO_MAIL="hello@example.com"
CONTACT_PHONE_REQUIRED=false

Finally you can access your contact page by access http://your-site.com/contact to show the result

Customize Your Form

If you want to create your own contact us page, you must follow below instructions:

  • Form action = {{ route('contact.submit') }}
  • Name field = input name="name"
  • Email field = input name="email"
  • Message field = textarea name="message"

Don't forget to add {{ csrf_field() }}

You can create the contact page with your own Route and/or Controller

Bugs and Issues

If you found bugs or issues just write to Issues

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-06-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固