| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function send(\Exception $exception) |
||
| 30 | { |
||
| 31 | $config = config('exception-monitor.mail'); |
||
| 32 | |||
| 33 | $this->mailer->send('laravel-exception-monitor::email', [ 'e' => $exception ], function ($m) use ($config) { |
||
| 34 | $m->from($config['from']); |
||
| 35 | $m->to($config['to']); |
||
| 36 | $m->subject('A exception has been thrown on ' . config('app.url')); |
||
| 37 | }); |
||
| 38 | } |
||
| 39 | } |