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 <ityaozm@gmail.com>
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 1212
1313use Guanguans \LaravelExceptionNotify \Channels \ChanifyChannel ;
1414use Guanguans \LaravelExceptionNotify \Channels \DingTalkChannel ;
15+ use Guanguans \LaravelExceptionNotify \Channels \DumpChannel ;
1516use Guanguans \LaravelExceptionNotify \Channels \FeiShuChannel ;
1617use Guanguans \LaravelExceptionNotify \Channels \LogChannel ;
1718use Guanguans \LaravelExceptionNotify \Channels \MailChannel ;
@@ -223,6 +224,11 @@ protected function createDingTalkDriver()
223224 );
224225 }
225226
227+ protected function createDumpDriver ()
228+ {
229+ return new DumpChannel ();
230+ }
231+
226232 protected function createFeiShuDriver ()
227233 {
228234 return new FeiShuChannel (
You can’t perform that action at this time.
0 commit comments