ramiz / contact
this is contact admin package using this package user can send mail to admin
README
The Contact Admin Package is a simple Laravel package that provides functionality to manage contact messages, including name, email, and message fields. It allows you to easily collect and manage contact information from users on your website.
Features
- Capture and store contact messages from users.
- Easily configure receiver email address for contact messages.
- Seamless integration with Laravel's mail system.
Installation
To get started with the Contact Admin Package, follow these steps:
-
Install the Package: Install the package using Composer:
composer require ramiz/contact
-
Set Mail Credentials: Add your mail credentials to your
.env
file to ensure the package can send email notifications:MAIL_MAILER=smtp MAIL_HOST=smtp.example.com MAIL_PORT=587 MAIL_USERNAME=your_username MAIL_PASSWORD=your_password MAIL_ENCRYPTION=tls
-
Configure Receiver Email: Set the receiver email address for contact messages in the
config.contact
file located in your Laravel project'sconfig
directory. -
Publish Configuration: Publish the package's configuration files:
php artisan vendor:publish --provider="Ramiz\Contact\ContactServiceProvider"
-
Run Migrations: Run the database migrations to create the necessary tables:
php artisan migrate
Usage
Once the package is installed and configured, you can easily manage contact messages through the provided routes and views. Access the contact admin panel by navigating to /contact
in your browser.
License
This package is open-source software licensed under the MIT License.