jsefton/laravel-contact-form

This package is abandoned and no longer maintained. No replacement package was suggested.

Easy to use contact form handler for Laravel

dev-master 2018-02-28 17:00 UTC

This package is auto-updated.

Last update: 2022-08-05 08:14:49 UTC


README

This package allows you to unify how you handle contact form submissions. This will handle sending out an email to a site owner and the user filling in the form. It will also store the information in the database.

Installation

You will need composer to install this package (get composer). Then run:

composer require jsefton/laravel-contact-form

Register Service Provider

Add the below into your config/app.php within providers array

Jsefton\LaravelContactForm\LaravelContactFormProvider::class

TODO

  • Make Trait for controller to handle request and trigger actions
  • Database structure:
    • from, to, subject, contents, form_data (json), form_url, created
  • Create methods to:
    • Send client email
    • Send customer email
    • Store data in database
  • Email template - Publish standard into resources/view on vendor:publish, then allows to be changed easily
  • Allow customise responses to be set as protected variables in the controller using the trait.