Skip to content

Commit 1e99e91

Browse files
committed
Update config.php
1 parent c96f846 commit 1e99e91

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

src/config/config.php

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,43 @@
11
<?php
22
return [
3+
/*
4+
|--------------------------------------------------------------------------
5+
| Slack notification
6+
|--------------------------------------------------------------------------
7+
|
8+
| Whenever you `Log::error('some error');`, that error's message will be
9+
| sent to the Slack channel you have setup. Please note this "bubbles up"
10+
| which means it will be sent to the Slack channel for any logging done
11+
| error and up, error, critical, alert, and emergency. You can disable it
12+
| by passing an empty array to `env` property
13+
|
14+
*/
315
'slack' => [
16+
/**
17+
* Your slack token.
18+
*
19+
* Go to the authorization page (https://api.slack.com/web#auth) and
20+
* generate a new token
21+
*/
422
'token' => 'your-token',
23+
24+
/**
25+
* Slack channel (encoded ID or name)
26+
*
27+
* Send the message to an existing '#channel' or 'private-group'
28+
*/
529
'channel' => '#general',
30+
31+
/**
32+
* The name of the bot
33+
*/
634
'username' => 'Error Bot',
7-
'env' => 'production'
35+
36+
/**
37+
* Slack notification triggers on this environment
38+
*
39+
* String or array. Empty array means disabled.
40+
*/
41+
'env' => 'production' //
842
]
943
];

0 commit comments

Comments
 (0)