jamessingizi/contact

contact form for sending email to admin and saving contact form details in database

v2.0.0 2020-10-14 16:28 UTC

This package is auto-updated.

Last update: 2025-05-20 18:41:06 UTC


README

Issues Stars License Scrutinizer Code Quality

Contact is a simple and extensible contact form package for laravel projects.

  • Simple and easy to use
  • Highly configurable
  • Extensible and customizable
  • Uses TailwindCSS for views
  • Saves contact form to database and sends an email to specified email address

Contact

The recommended way to install Contact is through Composer.

composer require jamessingizi/contact

After installation, run

php artisan migrate

to create required database tables.

To publish configs, run

php artisan vendor:publish

The above command will publish a config file named contact.php in the config file of your project. Change the 'send_email_to' value to the email you want to send emails to. You can also publish the views in order to customize the look and feel of the contact page. For sending emails you will need to define email settings in the .env file of your application

The package uses laravel queues and will automatically queue emails if a queue is defined.

Once installed the contact form will be available at the '/contact' route of your project