ldc-gen-game-web/app/Mail/NotifAdmin.php
Noah Lancien 949b7ca13e phpcs
2023-08-24 12:59:51 +00:00

39 lines
764 B
PHP

<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class NotifAdmin extends Mailable implements ShouldQueue
{
use Queueable;
use SerializesModels;
/** @var string */
private $msg;
/**
* Create a new message instance.
*
* @param string $msg
* @return void
*/
public function __construct(string $msg)
{
$this->msg = $msg;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
$msg = $this->msg;
return $this->subject(config('app.name') . " : Erreur")->view('front.basic.notif-admin', compact('msg'));
}
}