shouldntReport($e)) { return; } Mail::send('emails.exception', [ 'url' => app()->runningInConsole() ? 'CONSOLE' : ( (request() and request()->fullUrl()) ? request()->fullUrl() : 'none'), 'exception' => $e ], function ($m) { $m->to( config('mail.contactsList.serviceweb'), 'LDC WEB Exception Handler' )->subject('Need help !, an error occured in your application, please check Logs ASAP'); }); } } finally { parent::report($e); } } /** * Render an exception into an HTTP response. * * @param \Illuminate\Http\Request $request * @param \Throwable $exception * @return \Symfony\Component\HttpFoundation\Response * * @throws \Exception */ public function render($request, Throwable $exception) { return parent::render($request, $exception); } }