digital-pulse-lv / slack-laravel
A simple package to send notifications to Slack channels.
1.1.3
2024-08-14 12:11 UTC
Requires
- php: ^8.0
- laravel/framework: ^8.0.0|^9.0.0|^10.0.0|^11.0.0
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:
Default
channel: use the default webhook to send all common messages.Error
channel: use a webhook to send all errors of your application.Dev
channel: use a local webhook that overrides all messages when the application is running locally.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.