public function sendEmail($email)
    {
        $user = $this->users->where('email', $email)->first();

        if (! is_null($user)) {
            $user->generatePasswordResetToken();
        }
    }
public function sendEmail($email)
    {
        $user = $this->users->where('email', $email)->first();

        if (! is_null($user)) {
            $user->generatePasswordResetToken();
        }
    }
public function sendEmail ( $ email ) { $ user = $ this -> users -> where ( 'email' , $ email ) -> first ( ) ; if ( ! is_null ( $ user ) ) { $ user -> generatePasswordResetToken ( ) ; } }
If the email exists, generate a reset token for that user.

@param string $email The user's email.
If the email exists generate a reset token for that user .