phpvms/app/Mail/UserPending.php
2017-12-29 16:56:46 -06:00

29 lines
619 B
PHP

<?php
namespace App\Mail;
use App\Models\User;
use Illuminate\Mail\Mailable;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
class UserPending extends Mailable
{
use Queueable, SerializesModels;
public $subject, $user;
public function __construct(User $user, $subject=null)
{
$this->subject = $subject ?: 'Your registration is pending!';
$this->user = $user;
}
public function build()
{
return $this->markdown('emails.user.pending')
->subject($this->subject)
->with(['user' => $this->user]);
}
}