rutorika / laravel-slack-alerts
0.5.0
2015-12-21 15:09 UTC
Requires
- laravel/framework: ~5.1
Requires (Dev)
- orchestra/testbench: ~3.0
This package is auto-updated.
Last update: 2024-12-16 23:16:27 UTC
README
Rutorika Laravel Slack Alert Provider
Provides errors logging to the slack
Install
xu@calypso:~$ composer require rutorika/laravel-slack-alerts
Add service provider to config/app.php
'providers' => [ // other providers... Rutorika\LaravelSlackAlert\SlackAlertServiceProvider::class, ]
Publish config
xu@calypso:~$ php artisan vendor:publish --provider="Rutorika\LaravelSlackAlert\SlackAlertServiceProvider"
Add enviroment variables to your .env
file (see config/slack-alert.php
for defaults)
SLACK_CHANNEL=#dev-alert
SLACK_TOKEN=xxxx-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxxx-xxxxxxxxxx
SLACK_NAME="Site Name"
SLACK_MENTION_TO=@username