Download the PHP package omh/laracontact without Composer
On this page you can find all versions of the php package omh/laracontact. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download omh/laracontact
More information about omh/laracontact
Files in omh/laracontact
Package laracontact
Short Description A Contact Us form for Laravel application
License MIT
Homepage https://github.com/himan72/laracontact
Informations about the package laracontact
Laracontact
Laracontact is a Contact us form for your laravel applications with spam protection through Google reCaptcha V2.
The package store a contact request with (name, email, subject and message) in the database and send it by email to admins.
Installation
-
The service provider will automatically get registered. Or you may manually add the service provider in your config/app.php file:
-
You should publish the migration and the
config/contact_request.php
config file with: - After the config and migration have been published and configured, you can create the
contact_requests
table by running the migration:
Usage
The contact us form is availabe by default at /contact-us
You can customize the form path on the config file.
Default config file contents
-
You can change the redirection url after the contact submission
-
You can change the contact us page title
-
You can add admin's emails in the notifiables array
- You can disable sending emails by setting the
'send_emails'
to false
Customize the Contact Us form
If you want to customize the contact us form you can run
The views will now be located in the resources/views/vendor/contact_request/
directory
Use your own Maillable/Notifiable
A Laracontact\Events\ContactRequestEvent
event is fired each time a contact request is submitted. You can add listeners in your app/Providers/EventServiceProvider.php
file and trigger your own maillable