PHPackages                             ayangzy/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. [Database &amp; ORM](/categories/database)
4. /
5. ayangzy/contact

ActiveLibrary[Database &amp; ORM](/categories/database)

ayangzy/contact
===============

A simple package that add contact form to your laravel application, send email to admin and save contact query to the database

06Blade

Since Apr 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ayangzy/laravel-contact-us-form-package)[ Packagist](https://packagist.org/packages/ayangzy/contact)[ RSS](/packages/ayangzy-contact/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Overview
--------

[](#overview)

This is a simple laravel package that add contact form to your laravel application, send email to admin and save contact query to the database

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

[](#installation)

Begin by pulling in the package through Composer.

```
composer require ayangzy/contact

```

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

```
'providers' => [
   Ayangzy\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 of you application.

```
CONTACT_MAIL_TO=testcontactform@example.com

```

Fee free to modify the form view, To do this, you can publish the form view with the following command:

```
php artisan vendor:publish

```

Select the provider to publish which is

```
 Ayangzy\Contact\ContactServiceProvider

```

Which will publish the config file, contact.php, which you can modify to add the email address to where you want to be receiving all contact emails

```
