digital-pulse-lv/slack-laravel

A simple package to send notifications to Slack channels.

1.1.2 2023-04-15 13:44 UTC

This package is auto-updated.

Last update: 2024-05-15 16:14:48 UTC


README

A simple package to send notifications to Slack channels.

Installation

Simply run the following command to install:

   composer require digital-pulse-lv/slack-laravel

Then publish the config file and adjust it as you need it:

   php artisan vendor:publish --provider="DigitalPulse\SlackLaravel\app\Providers\SlackLaravelServiceProvider"

How to use it

By default, it supports 3 channels:

  1. Default channel: use the default webhook to send all common messages.
  2. Error channel: use a webhook to send all errors of your application.
  3. Dev channel: use a local webhook that overrides all messages when the application is running locally.
  4. Deploy channel: use a deploy webhook to send info about repo pull requests.

Test

You can easily test the service using our console command php artisan slack:test and then follow the instructions.