Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/development' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahem-kamal committed Feb 5, 2024
2 parents 2114578 + da33fa1 commit 0d591ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/OtpCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

/**
* Class OtpCode
* @package Ibrahemkamal\Otp\Models
*
* @property string $otp
* @property string $phone
* @property string $service
Expand Down
1 change: 1 addition & 0 deletions src/Otp.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public function generate($otp = null): OtpCode
if (!$this->validateOtpUniqueness($otp)) {
return $this->generate();
}

/** @phpstan-ignore-next-line */
return $this->model->otpCodes()->create([
'otp' => $otp,
Expand Down

0 comments on commit 0d591ac

Please sign in to comment.