ldc-gen-game-web/app/Mail/JobFailed.php
Jérémy Munsch 1af96897f3
- Squash migration
- Normalize Model names and sql tables
- PHPCS clean up
- Change analytics form + field
2022-01-11 12:46:10 +01:00

38 lines
722 B
PHP

<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class JobFailed extends Mailable
{
use Queueable;
use SerializesModels;
public $job;
public $exception;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($job, $exception)
{
$this->job = $job;
$this->exception = $exception;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->subject('[JOB FAILED] Une erreur est survenue pendant le job : ' . $this->job)
->view('bo.mails.job-failed');
}
}