A Laravel Package to create Contact Us Form Easily
- Send Email
- Save Message to Database
Tested on Laravel 5.7
Run the following command:
composer require nadaft/contactme
If you're installing on Laravel 5.5+ skip this step
Nadaft\ContactMe\ContactMeServiceProvider::class,
Run the following command:
php artisan migrate
Add variable MAIL_CONTACTME_TO to .env
and then define the email to receive email
For example
MAIL_CONTACTME_TO="[email protected]"
Finally you can access your contact page by access http://your-site.com/contactme
to show the result
If you want to create your own contact us page, you must following below instruction :
- Form action =
{{ route('contactme.submit') }}
- Name field = input
name="name"
- Email field = input
name="email"
- Message field = textarea
name="message"
Don't forget to add
{{ csrf_field() }}
You can create the contact page with your own Route and/or Controller
If you found bugs or issues just write to Issues