PHPackages                             nycu-csit/laravel-mattermost - 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. nycu-csit/laravel-mattermost

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

nycu-csit/laravel-mattermost
============================

Mattermost Notification Channel for Laravel

v0.1.1(2mo ago)0249MITPHPPHP &gt;=8.1CI passing

Since Oct 23Pushed 2mo agoCompare

[ Source](https://github.com/nycu-csit/laravel-mattermost)[ Packagist](https://packagist.org/packages/nycu-csit/laravel-mattermost)[ RSS](/packages/nycu-csit-laravel-mattermost/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (10)Versions (4)Used By (0)

nycu-csit/laravel-mattermost
============================

[](#nycu-csitlaravel-mattermost)

This package provides the custom Mattermost Notification Channel for Laravel 10+ applications.

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

[](#installation)

```
composer require nycu-csit/laravel-mattermost
```

Usage
-----

[](#usage)

1. Add Mattermost config in the `services.php`

    ```
    // services.php
    'mattermost' => [
        'webhook_url' => env('MATTERMOST_WEBHOOK_URL'),
    ],
    ```
2. Use `MattermostChannel` in `via` method, and define `toMattermost` method which should return an instance of `MattermostMessage`. You can return falsy value from that method to not send the message to Mattermost.

    ```
