Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sandervanhooft/laravel-contact-form

A simple contact form for Laravel
https://github.com/sandervanhooft/laravel-contact-form

contact-form laravel php7

Last synced: about 17 hours ago
JSON representation

A simple contact form for Laravel

Awesome Lists containing this project

README

        

# Simple Laravel Contact Form

This package brings you a basic drop-in contact form solution.

## Features
- A contact form available at url “/contact”.
- The default form is Bootstrap 3 based.
- The name, E-mail and message field are required.
- Sends a receipt confirmation with a copy of the message to the receiver address and to the submitter’s address
- You can override the default url in the config file.
- Uses the default application mail __from__ address and __from__ name for notifications, allows this to be overridden in the config file.
- You can publish the form’s views (including the mail template).

## Installation

```
composer require sandervanhooft/laravel-contact-form
```

Optional: alter configuration (route, from-mail-address).
```
php artisan vendor:publish “SanderVanHooft\ContactForm\ServiceProvider” —tag=config
```

## Publishing the form’s views
```
php artisan vendor:publish “SanderVanHooft\ContactForm\ServiceProvider” —tag=views
```

## Create your first Laravel package
This package is part of the Laravel package development from scratch course.
You can join for free [here](https://go.sandervanhooft.com/courses/laravel-package-dev-from-scratch).