PHPackages                             dymantic/secretary - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. dymantic/secretary

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

dymantic/secretary
==================

Message and notification system for basic admin sections. It handles contact forms.

v0.2.0(7y ago)099MITPHP

Since Jan 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Dymantic/secretary)[ Packagist](https://packagist.org/packages/dymantic/secretary)[ RSS](/packages/dymantic-secretary/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

Secretary - Handles contact form messages for Laravel projects
==============================================================

[](#secretary---handles-contact-form-messages-for-laravel-projects)

A simple way to handle contact forms and such. At the very least, it saves you from having to deal with handling that damn contact form for the millionth time. Simply pass the message to your Secretary and it will handle it accordingly, whether it is sending off an email, Slack message, etc. Database records are kept for each message. Only Email and Slack messages are included out of the box, but it is easy to add your own.

### Installation and setup

[](#installation-and-setup)

Step 1: Require with composer

```
composer require dymantic/secretary
```

Laravel should auto-discover the ServiceProvider and Facade. If you don't use auto-discovery you can add them yourself to your app config.

```
//in config/app.php
...
'providers' => [
    //...
    Dymantic\Secretary\SecretaryServiceProvider::class,
    //...
];

...

'aliases' => [
    //...
    'Secretary' => Dymantic\Secretary\Facades\Secretary::class,
];
```

Step 2: Publish the config file:

```
php artisan vendor:publish --provider="Dymantic\Secretary\SecretaryServiceProvider"

```

Step 3: Run the migration

```
php artisan migrate

```

Step 4: Set your config accordingly in `config/secretary.php`. Below is an example:

```
