From a1f79e58db7d5d2b102a1fd895276bbdf55ca3ac Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 24 Feb 2016 20:44:39 +0100 Subject: [PATCH] Include time in job. --- app/Jobs/MailError.php | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/app/Jobs/MailError.php b/app/Jobs/MailError.php index ff5cd94a4d..cd58d08478 100644 --- a/app/Jobs/MailError.php +++ b/app/Jobs/MailError.php @@ -59,19 +59,11 @@ class MailError extends Job implements ShouldQueue if ($this->attempts() < 3) { // mail? try { - $email = env('SITE_OWNER'); - $args = [ - 'class' => $this->exception['class'], - 'errorMessage' => $this->exception['errorMessage'], - 'stacktrace' => $this->exception['stackTrace'], - 'file' => $this->exception['file'], - 'line' => $this->exception['line'], - 'code' => $this->exception['code'], - 'loggedIn' => !is_null($this->user->id), - 'user' => $this->user, - 'ip' => $this->ip, - - ]; + $email = env('SITE_OWNER'); + $args = $this->exception; + $args['loggedIn'] = !is_null($this->user->id); + $args['user'] = $this->user; + $args['ip'] = $this->ip; Mail::send( ['emails.error-html', 'emails.error'], $args,