ramiz/contact

this is contact admin package using this package user can send mail to admin

v1.0.6 2023-08-08 19:01 UTC

This package is auto-updated.

Last update: 2025-01-08 22:12:07 UTC


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:

  1. Install the Package: Install the package using Composer:

    composer require ramiz/contact
  2. 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
  3. Configure Receiver Email: Set the receiver email address for contact messages in the config.contact file located in your Laravel project's config directory.

  4. Publish Configuration: Publish the package's configuration files:

     php artisan vendor:publish --provider="Ramiz\Contact\ContactServiceProvider"
  5. 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.