File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /**
4
+ * This file is part of the guanguans/laravel-exception-notify.
5
+ *
6
+ * (c) guanguans <[email protected] >
7
+ *
8
+ * This source file is subject to the MIT license that is bundled.
9
+ */
10
+
11
+ namespace Guanguans \LaravelExceptionNotify \Channels ;
12
+
13
+ class DumpChannel extends Channel
14
+ {
15
+ public function report (string $ report )
16
+ {
17
+ dump ($ report );
18
+ }
19
+ }
Original file line number Diff line number Diff line change 12
12
13
13
use Guanguans \LaravelExceptionNotify \Channels \ChanifyChannel ;
14
14
use Guanguans \LaravelExceptionNotify \Channels \DingTalkChannel ;
15
+ use Guanguans \LaravelExceptionNotify \Channels \DumpChannel ;
15
16
use Guanguans \LaravelExceptionNotify \Channels \FeiShuChannel ;
16
17
use Guanguans \LaravelExceptionNotify \Channels \LogChannel ;
17
18
use Guanguans \LaravelExceptionNotify \Channels \MailChannel ;
@@ -223,6 +224,11 @@ protected function createDingTalkDriver()
223
224
);
224
225
}
225
226
227
+ protected function createDumpDriver ()
228
+ {
229
+ return new DumpChannel ();
230
+ }
231
+
226
232
protected function createFeiShuDriver ()
227
233
{
228
234
return new FeiShuChannel (
You can’t perform that action at this time.
0 commit comments