src/HasOtp.php
/**
     * Generate a new OTP instance
     *
     * @return \OTPHP\TOTP
     */
Generate a new OTP instance
@return \OTPHP\TOTP
Generate a new OTP instance @return \ OTPHP \ TOTP
protected function generateOtpInstance()
    {
        $otp = TOTP::create($this->generateOtpSecret(), config('otp.period'));
        $otp->setLabel($this->getOtpLabel());
        $this[$this->otpUriName] = $otp->getProvisioningUri();
        $this->save();
        return $otp;
    }
protected function generateOtpInstance ( ) { $ otp = TOTP :: create ( $ this -> generateOtpSecret ( ) , config ( 'otp.period' ) ) ; $ otp -> setLabel ( $ this -> getOtpLabel ( ) ) ; $ this [ $ this -> otpUriName ] = $ otp -> getProvisioningUri ( ) ; $ this -> save ( ) ; return $ otp ; }
Generate a new OTP instance
 @return \OTPHP\TOTP
Generate a new OTP instance @return \ OTPHP \ TOTP