Better user creation email.
This commit is contained in:
parent
3240601d03
commit
95171a3e41
5 changed files with 14 additions and 20 deletions
|
@ -49,6 +49,12 @@ class UserObserver
|
|||
public function created(User $user)
|
||||
{
|
||||
event(new Events\User\Created($user));
|
||||
|
||||
$user->notify((new AccountCreated([
|
||||
'name' => $user->name_first,
|
||||
'username' => $user->username,
|
||||
'token' => DB::table('password_resets')->where('email', $user->email)->orderBy('created_at', 'desc')->first(),
|
||||
])));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue