sumanraj/contact_form

This package is for manage a dynamic contact information storing into database and also sending email to admin.

dev-master 2020-05-02 10:06 UTC

This package is auto-updated.

Last update: 2024-11-29 06:21:55 UTC


README

GitHub issues GitHub stars

Laravel suitable Contact Form

This package is for manage a dynamic contact information storing into database and also sending email to admin.

Installations

composer require sumanraj/contact_form

Configuration

php artisan vendor:publish --provider="Sumanraj\Contact\ContactServiceProvider"

Database Migration (Create a table into Database)

php artisan migrate

Mail Configurations

Edit .env for test mail configure

MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=your_mailtrap_user_name
MAIL_PASSWORD=your_mailtrap_user_password
MAIL_ENCRYPTION=TLS

Sender mail configuration

-> Edit config/contactconfig.php
'send_to' => 'your_receiver_mail_id'
'send_from' => 'your_sender_mail_id'
'sender' => 'mail_sender_name'

Route to check

<your_site>/contact