class NotifyReserveCreated extends Mailable
{
use Queueable, SerializesModels;
protected $reserve;
protected $adminmail;
/**
* Create a new message instance.
*
* @param Reserve $reserve
* @return void
*/
public function __construct(Reserve $reserve, $adminmail)
{
$this->reserve = $reserve;
$this->adminmail = $adminmail;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->subject('Бронь #'. $this->reserve->id .' - УСПЕШНО РАЗМЕЩЕНА')
->view('mail.notify_reserve',[
'reserve' => $this->reserve,
'adminmail' => $this->adminmail,
]);
}
}
class NotifyReserveCreated extends Mailable
{
use Queueable, SerializesModels;
protected $reserve;
protected $adminmail;
/**
* Create a new message instance.
*
* @param Reserve $reserve
* @return void
*/
public function __construct(Reserve $reserve, $adminmail)
{
$this->reserve = $reserve;
$this->adminmail = $adminmail;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->subject('Бронь #'. $this->reserve->id .' - УСПЕШНО РАЗМЕЩЕНА')
->view('mail.notify_reserve',[
'reserve' => $this->reserve,
'adminmail' => $this->adminmail,
]);
}
}