/** * Handle the event. * * @param UserActivated $event * @return void */ public function handle(UserActivated $event) { $user = $event->user; $this->mailer->to($user->email, $user->profile->name)->from('*****@*****.**', 'Company')->send(new Welcome($user)); }
/** * Handle the event. * * @param UserRegistered $event * @return void */ public function handle(UserRegistered $event) { $user = $event->user; $this->mailer->to($user->email)->from('*****@*****.**', 'Company')->send(new UserActivation($user)); }