Include time in job.

This commit is contained in:
James Cole
2016-02-24 20:44:39 +01:00
parent 2cc5fdcf62
commit a1f79e58db

View File

@@ -59,19 +59,11 @@ class MailError extends Job implements ShouldQueue
if ($this->attempts() < 3) { if ($this->attempts() < 3) {
// mail? // mail?
try { try {
$email = env('SITE_OWNER'); $email = env('SITE_OWNER');
$args = [ $args = $this->exception;
'class' => $this->exception['class'], $args['loggedIn'] = !is_null($this->user->id);
'errorMessage' => $this->exception['errorMessage'], $args['user'] = $this->user;
'stacktrace' => $this->exception['stackTrace'], $args['ip'] = $this->ip;
'file' => $this->exception['file'],
'line' => $this->exception['line'],
'code' => $this->exception['code'],
'loggedIn' => !is_null($this->user->id),
'user' => $this->user,
'ip' => $this->ip,
];
Mail::send( Mail::send(
['emails.error-html', 'emails.error'], $args, ['emails.error-html', 'emails.error'], $args,