so-manager-dev.com/app/Mail/ReservationCancelledMail.php

32 lines
724 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class ReservationCancelledMail extends Mailable
{
use Queueable, SerializesModels;
public $user_name;
public $reserve;
public function __construct($user_name, $reserve)
{
$this->user_name = $user_name;
$this->reserve = $reserve;
}
public function build()
{
return $this->subject('So-Manager空き待ちのキャンセルが完了しました')
->view('emails.reservation_cancelled')
->with([
'user_name' => $this->user_name,
'reserve' => $this->reserve,
]);
}
}