url)); } try { if (!config('app.debug')) { if ($this->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'), 'Le Gaulois Exception Handler' )->subject('Need help !, an error occured in your application, please check Logs ASAP'); }); } } finally { parent::report($e); } } }