maurohmartinez/slack-laravel

This package is abandoned and no longer maintained. The author suggests using the digital-pulse-lv/slack-laravel package instead.

A simple package to send notifications to Slack channels.

1.1.3 2024-08-14 12:11 UTC

This package is auto-updated.

Last update: 2024-08-14 12:11:43 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.