dipen/contact

This will send email to admin and save contact query in database.

dev-main 2021-06-28 04:36 UTC

This package is auto-updated.

Last update: 2025-04-28 12:48:32 UTC


README

Issuses Forks Stars

For Laravel 5.7

Inrtoduction

This will send email to admin and save contact query in database.

Getting Started

To get started add the following package to your composer.json file using this command.

composer require dipen/contact

Configuring

When composer installs Laravel Contact library successfully,

First Add Database credentials to the .env file

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=Database Name
DB_USERNAME=Database Username 
DB_PASSWORD=Database Password

In the next step run following command.

php artisan migrate 

Next Add the email credentials to the .env file

MAIL_DRIVER=smtp 
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME='your email id'
MAIL_PASSWORD='your email password'
MAIL_ENCRYPTION='tls'

Usage

Start Local Server

php artisan serve

Enjoy :)

http://localhost:8000/contact

That's all folks!