2021-02-23 18:27:03 +01:00
|
|
|
<?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
|
|
|
|
|
{
|
2021-08-18 17:08:02 +02:00
|
|
|
use Queueable;
|
|
|
|
|
use SerializesModels;
|
2021-02-23 18:27:03 +01:00
|
|
|
|
|
|
|
|
private $msg;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create a new message instance.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function __construct($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'));
|
|
|
|
|
}
|
|
|
|
|
}
|