Пример #1
0
 /**
  * send a message to the email of the user
  *
  * @return Reponse
  */
 public function sendToEmail(Request $request, UserMailer $userMailer)
 {
     $this->validate($request, ['email' => 'required|email']);
     $request = $request->only('email');
     $request['token'] = str_random(40);
     $this->resetPasswordRepo->create($request);
     $userMailer->sendResetPasswordEmailTo($request);
     return redirect()->route('core::home');
 }
Пример #2
0
 public function it_send_a_welcome_message(UnitTester $I)
 {
     $to = "*****@*****.**";
     $userMailer = new UserMailer();
     $userMailer->welcome($to);
 }