Skip to content

Commit 544d819

Browse files
committed
update expiry secs
1 parent 4bb5403 commit 544d819

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Models/MobileNumber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ public function getVerificationCodeExpiresAtAttribute(): Carbon
266266
*/
267267
public function getVerificationCodeExpiryAttribute(): int
268268
{
269-
return $this->is_verification_code_expired ? 0 : $this->verification_code_expires_at->diffInSeconds();
269+
return $this->is_verification_code_expired ? 0 : now()->diffInSeconds($this->verification_code_expires_at);
270270
}
271271

272272
/**

0 commit comments

Comments
 (0)