PHPackages                             ricadesign/laravel-contact - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ricadesign/laravel-contact

ActiveLi[Utility &amp; Helpers](/categories/utility)

ricadesign/laravel-contact
==========================

Creates contact backend and scaffolds frontend of contact form

v1.0.98(3y ago)51.4k↑160%1[1 issues](https://github.com/Ricadesign/laravel-contact/issues)MITBladePHP &gt;=7.0.0CI failing

Since Oct 18Pushed 3y ago2 watchersCompare

[ Source](https://github.com/Ricadesign/laravel-contact)[ Packagist](https://packagist.org/packages/ricadesign/laravel-contact)[ RSS](/packages/ricadesign-laravel-contact/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (2)Versions (28)Used By (0)

Easy Contact Form for Your Laravel App
======================================

[](#easy-contact-form-for-your-laravel-app)

This composer package offers a setup for contact form. Provides a default view for the contact form, set routes for the contact form view and the submit of the form, and adds the controller logic to send the information of the form to an email adress.

Installation
------------

[](#installation)

Begin by pulling in the package through Composer.

```
composer require ricadesign/laravel-contact
```

Next, if using Laravel 5, include the service provider within your `config/app.php` file. From version 5.5 and thanks to [package autodiscovery](https://laravel-news.com/package-auto-discovery) this is no longer necesary.

```
'providers' => [
    Ricadesign\Contact\ContactServiceProvider::class,
];
```

Configuration
-------------

[](#configuration)

You can configure the email adress where the contact form message is sent to by adding the following variables to the .env file.

```
CONTACT_MAIL=john.doe@example.com
```

If you need to modify the form view, you can publish the form view with the following command:

```
php artisan vendor:publish --tag=ricadesign/laravel-contact
```

This will also publish the config file, contact.php, which you can modify to add the email address or disable the default GET route:

```
