2017-12-23 02:46:46 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Mail;
|
|
|
|
|
|
|
|
use App\Models\User;
|
2017-12-23 06:32:21 +08:00
|
|
|
use Illuminate\Bus\Queueable;
|
2018-02-21 12:33:09 +08:00
|
|
|
use Illuminate\Mail\Mailable;
|
2017-12-23 02:46:46 +08:00
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
|
|
class UserPending extends Mailable
|
|
|
|
{
|
|
|
|
use Queueable, SerializesModels;
|
2017-12-30 06:56:46 +08:00
|
|
|
public $subject, $user;
|
2017-12-23 02:46:46 +08:00
|
|
|
|
2018-03-20 09:50:40 +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')
|
2018-03-20 09:50:40 +08:00
|
|
|
->subject($this->subject)
|
|
|
|
->with(['user' => $this->user]);
|
2017-12-23 02:46:46 +08:00
|
|
|
}
|
|
|
|
}
|