jtelesforoantonio / laravel-contact-form
Contact form for laravel
v1.0.0
2019-08-30 20:53 UTC
Requires
- php: >=7.0
This package is auto-updated.
Last update: 2025-01-25 06:22:46 UTC
README
This package is a simple contact form for laravel >=5.5, the form use Bootstrap 4.
Installation
Install the package with Composer.
composer require jtelesforoantonio/laravel-contact-form
Laravel 5.5 uses Package Auto Discovery and you don't need to add the Service Provider manually.
Usage
Once installed you need to run the migration command to create the table(contact_messages) where the messages will be saved.
php artisan migrate
If you want to send a email notification of the contact message you need to publish the config file(contact_form).
php artisan vendor:publish --tag=laravel-contact-form-config
You can modify the HTML form template used.
php artisan vendor:publish --tag=laravel-contact-form-views
Also you can to change the translation of the contact form.
php artisan vendor:publish --tag=laravel-contact-form-translations
Call the contact route where you want.
<a href="{{ route('contact') }}">Contact Us</a>