ldc-gen-game-web/app/Mail/JobFailed.php

36 lines
697 B
PHP
Raw Normal View History

<?php
2021-08-18 17:08:02 +02:00
namespace App\Mail;
2021-08-18 17:08:02 +02:00
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
2021-08-18 17:08:02 +02:00
class JobFailed extends Mailable
{
2021-08-18 17:08:02 +02:00
use Queueable;
use SerializesModels;
/**
* Create a new message instance.
*
2023-08-24 12:59:51 +00:00
* @param string $job
* @param array $exception
* @return void
*/
2023-11-23 17:31:28 +01:00
public function __construct(public string $job, public array $exception)
{
}
2023-11-23 17:31:28 +01:00
/**
* Build the message.
*
* @return $this
*/
2021-08-18 17:08:02 +02:00
public function build()
{
return $this->subject('[JOB FAILED] Une erreur est survenue pendant le job : ' . $this->job)
2023-11-20 17:22:24 +01:00
->view('back::mails.job-failed');
}
}