PHPackages                             omh/laracontact - 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. omh/laracontact

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

omh/laracontact
===============

A Contact Us form for Laravel application

1.0.2(6y ago)17MITPHPPHP ^7.2

Since Dec 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/himan72/laracontact)[ Packagist](https://packagist.org/packages/omh/laracontact)[ Docs](https://github.com/himan72/laracontact)[ RSS](/packages/omh-laracontact/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

[![Laracontact](laracontact-logo.jpg)](laracontact-logo.jpg)

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
------------

[](#installation)

```
composer require omh/laracontact
```

- The service provider will automatically get registered. Or you may manually add the service provider in your config/app.php file:

```
'providers' => [
    // ...
    Laracontact\LaracontactServiceProvider::class,
];
```

- You should publish the migration and the `config/contact_request.php` config file with:

```
php artisan vendor:publish --tag="laracontact-migration"
php artisan vendor:publish --tag="laracontact-config"
```

- After the config and migration have been published and configured, you can create the `contact_requests` table by running the migration:

```
php artisan migrate
```

Usage
-----

[](#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
----------------------------

[](#default-config-file-contents)

```
return [
    /*
     * Set the form path.
     */
    'form_path' => '/contact-us',

    /*
     * Set the url redirection after submitting the contact us form.
     */
    'redirectTo' => '/',

    /*
    * Set the contact us page title.
    */
    'page_title' => 'Contact us',

    /*
     * Array of emails that should receive the contact request
     */
    'notifiables' => ['admin@test.test'],

    /*
     * Set to false to disable sending emails feature
     */
    'send_mails' => true,

    /*
     * To configure correctly please visit https://developers.google.com/recaptcha/docs/start
     */
    'recaptcha' => [

        /*
         *
         * The secret key
         * get site key @ www.google.com/recaptcha/admin
         *
         */
        'recaptcha_secret' => env('RECAPTCHA_SECRET'),

        /*
         *
         * The secret key
         * get site key @ www.google.com/recaptcha/admin
         *
         */
        'recaptcha_sitekey' => env('RECAPTCHA_SITEKEY'),
    ]

];
```

- You can change the redirection url after the contact submission

```
    /*
     * Set the url redirection after submitting the contact us form.
     */
     'redirectTo' => '/my-custom-redirection',
```

- You can change the contact us page title

```
    /*
     * Set the url redirection after submitting the contact us form.
     */
     'page_title' => 'My Custome title',
```

- You can add admin's emails in the notifiables array

```
    /*
     *  Array of emails that should receive the contact request
     */
     'notifiables' => ['admin@test.test'],
```

- You can disable sending emails by setting the `'send_emails'` to false

```
    /*
     * Set to false to disable sending emails feature
     */
    'send_mails' => false,
```

Customize the Contact Us form
-----------------------------

[](#customize-the-contact-us-form)

If you want to customize the contact us form you can run

```
php artisan vendor:publish --tag="laracontact-views"
```

The views will now be located in the `resources/views/vendor/contact_request/` directory

Use your own Maillable/Notifiable
---------------------------------

[](#use-your-own-maillablenotifiable)

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

```
    /**
     * The event listener mappings for the application.
     *
     * @var array
     */
    protected $listen = [
        Laracontact\Events\ContactRequestEvent::class => [
            // your own listeners
        ],
    ];
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~12 days

Total

3

Last Release

2309d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a5b4b42444a613bfd6927e5d1ab30cf267600e68123cdad4f97d4b723c93a82?d=identicon)[omh](/maintainers/omh)

---

Top Contributors

[![himan72](https://avatars.githubusercontent.com/u/6759529?v=4)](https://github.com/himan72 "himan72 (7 commits)")

---

Tags

contact-formlaravelphplaravelcontact form

### Embed Badge

![Health badge](/badges/omh-laracontact/health.svg)

```
[![Health](https://phpackages.com/badges/omh-laracontact/health.svg)](https://phpackages.com/packages/omh-laracontact)
```

###  Alternatives

[stevebauman/location

Retrieve a user's location by their IP Address

1.3k7.6M65](/packages/stevebauman-location)[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)[bensampo/laravel-embed

Painless responsive embeds for videos, slideshows and more.

142146.8k](/packages/bensampo-laravel-embed)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[adrianorosa/laravel-geolocation

Laravel Geo Location package to get details for a given IP Address

6593.3k1](/packages/adrianorosa-laravel-geolocation)[bakame/laravel-domain-parser

Laravel package to integrate PHP Domain parser.

26534.8k4](/packages/bakame-laravel-domain-parser)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
