Пример #1
0
 public function reset(User $user)
 {
     $newPassword = $this->generatePassword();
     $user->password = $newPassword;
     $user->save();
     $this->smsGateway->send($user->telephone, $this->getMessage($newPassword));
 }
Пример #2
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     $telephone = $this->argument('telephone');
     $message = $this->argument('message');
     $this->SMSGateway->send($telephone, $message);
 }