public function requestChangePassword(CanResetPasswordContract $account)
    {
        $token = $this->generateToken();

        $values = [
            'email' => $account->getEmailForPasswordReset(),
            'token' => $token,
            'created_at' => new \DateTime
        ];

        $reminder = $this->getReminder()->fill($values);

        $reminder->save();

        $this->sendEmail($account, $token);

        return $token;
    }
public function requestChangePassword(CanResetPasswordContract $account)
    {
        $token = $this->generateToken();

        $values = [
            'email' => $account->getEmailForPasswordReset(),
            'token' => $token,
            'created_at' => new \DateTime
        ];

        $reminder = $this->getReminder()->fill($values);

        $reminder->save();

        $this->sendEmail($account, $token);

        return $token;
    }
public function requestChangePassword ( CanResetPasswordContract $ account ) { $ token = $ this -> generateToken ( ) ; $ values = [ 'email' => $ account -> getEmailForPasswordReset ( ) , 'token' => $ token , 'created_at' => new \ DateTime ] ; $ reminder = $ this -> getReminder ( ) -> fill ( $ values ) ; $ reminder -> save ( ) ; $ this -> sendEmail ( $ account , $ token ) ; return $ token ; }
Generate a token for password change and saves it in
the Reminder table with the email of the
user.

@param CanResetPasswordContract $account An existent user.

@return string Password reset token.
Generate a token for password change and saves it in the Reminder table with the email of the user .