Fixes and cleanup for user pending/registration calls

This commit is contained in:
Nabeel Shahzad
2017-12-22 16:32:21 -06:00
parent 81ac281d9f
commit babdca627e
16 changed files with 237 additions and 60 deletions

View File

@@ -12,23 +12,19 @@ class UserRegistered extends Mailable
{
use Queueable, SerializesModels;
private $user;
private $subject,
$user;
public function __construct(User $user)
public function __construct(User $user, $subject=null)
{
$this->subject = $subject;
$this->user = $user;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->markdown('emails.user.registered')
->with([
'user' => $this->user,
]);
->subject($this->subject)
->with(['user' => $this->user]);
}
}