2017-12-23 06:32:21 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Mail;
|
|
|
|
|
|
|
|
use App\Models\User;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
|
use Illuminate\Mail\Mailable;
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
|
|
class UserRejected extends Mailable
|
|
|
|
{
|
|
|
|
use Queueable, SerializesModels;
|
2018-08-27 00:40:04 +08:00
|
|
|
public $subject;
|
|
|
|
public $user;
|
2017-12-23 06:32:21 +08:00
|
|
|
|
2018-03-20 09:50:40 +08:00
|
|
|
public function __construct(User $user, $subject = null)
|
2017-12-23 06:32:21 +08:00
|
|
|
{
|
|
|
|
$this->subject = $subject ?: 'Your registration has been denied';
|
|
|
|
$this->user = $user;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function build()
|
|
|
|
{
|
2018-03-20 09:50:40 +08:00
|
|
|
return $this
|
|
|
|
->markdown('emails.user.rejected')
|
|
|
|
->subject($this->subject)
|
|
|
|
->with(['user' => $this->user]);
|
2017-12-23 06:32:21 +08:00
|
|
|
}
|
|
|
|
}
|