2017-12-23 02:46:46 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Mail;
|
|
|
|
|
|
|
|
use App\Models\User;
|
|
|
|
use Illuminate\Mail\Mailable;
|
2017-12-23 06:32:21 +08:00
|
|
|
use Illuminate\Bus\Queueable;
|
2017-12-23 02:46:46 +08:00
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
|
|
class UserPending extends Mailable
|
|
|
|
{
|
|
|
|
use Queueable, SerializesModels;
|
|
|
|
|
2017-12-23 06:32:21 +08:00
|
|
|
private $subject,
|
|
|
|
$user;
|
2017-12-23 02:46:46 +08:00
|
|
|
|
2017-12-23 06:32:21 +08:00
|
|
|
public function __construct(User $user, $subject=null)
|
2017-12-23 02:46:46 +08:00
|
|
|
{
|
2017-12-23 06:32:21 +08:00
|
|
|
$this->subject = $subject ?: 'Your registration is pending!';
|
2017-12-23 02:46:46 +08:00
|
|
|
$this->user = $user;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function build()
|
|
|
|
{
|
|
|
|
return $this->markdown('emails.user.pending')
|
2017-12-23 06:32:21 +08:00
|
|
|
->subject($this->subject)
|
2017-12-23 02:46:46 +08:00
|
|
|
->with(['user' => $this->user]);
|
|
|
|
}
|
|
|
|
}
|