UserVerifyRepository
extends AbstractRepository
in package
implements
UserVerifyRepositoryInterface
Class AbstractRepository.
Table of Contents
Interfaces
- UserVerifyRepositoryInterface
- Interface UserVerify.
Properties
- $disableSponsor : mixed
- $skipPresenter : mixed
Methods
- addSuffixCode() : string
- buildQueryScopes() : mixed
- checkResend() : void
- cleanContent() : string|null
- cleanTitle() : string|null
- cleanupPending() : mixed
- commonVerify() : void
- createMany() : bool
- generate() : UserVerify|null
- getRemainingTime() : int
- getUserContractMorphTypeColumns() : array<string|int, string>
- getVerifyCode() : string
- hasSponsorView() : bool
- invalidatePendingVerify() : mixed
- isNoSponsorView() : bool
- likeOperator() : string
- return the case-insensitive LIKE operator bases on the current database driver.
- model() : mixed
- mustVerifyEmail() : bool
- mustVerifyPhoneNumber() : bool
- resend() : void
- resendLink() : void
- sendVerificationEmail() : void
- sendVerificationPhoneNumber() : void
- where() : $this
- withUserMorphTypeActiveScope() : self
- checkHasVerifyVerifiable() : void
- getLatestUserVerifyByUserId() : UserVerify|null
- getUserByVerifiableField() : User|null
- shouldResend() : bool
- getPendingQuery() : Builder
Properties
$disableSponsor
protected
mixed
$disableSponsor
$skipPresenter
protected
mixed
$skipPresenter
= true
Methods
addSuffixCode()
public
addSuffixCode(string $code, string $action) : string
Parameters
- $code : string
- $action : string
Return values
stringbuildQueryScopes()
public
buildQueryScopes(mixed $query, mixed $model, mixed $criteria) : mixed
Parameters
- $query : mixed
- $model : mixed
- $criteria : mixed
checkResend()
public
checkResend(User $user, string $action) : void
Parameters
- $user : User
- $action : string
cleanContent()
public
cleanContent(string|null $string) : string|null
Parameters
- $string : string|null
Return values
string|nullcleanTitle()
public
cleanTitle(string|null $string) : string|null
Parameters
- $string : string|null
Return values
string|nullcleanupPending()
public
cleanupPending() : mixed
commonVerify()
public
commonVerify(UserVerify|null $verify) : void
Parameters
- $verify : UserVerify|null
createMany()
public
createMany(array<string|int, mixed> $items) : bool
Parameters
- $items : array<string|int, mixed>
Return values
boolgenerate()
public
generate(User $user, string $action, string $verifiable, string $code) : UserVerify|null
Parameters
- $user : User
- $action : string
- $verifiable : string
- $code : string
Return values
UserVerify|nullgetRemainingTime()
public
getRemainingTime(User $user, string $action) : int
Parameters
- $user : User
- $action : string
Return values
intgetUserContractMorphTypeColumns()
public
getUserContractMorphTypeColumns() : array<string|int, string>
Return values
array<string|int, string>getVerifyCode()
public
getVerifyCode(string $action) : string
Parameters
- $action : string
Return values
stringhasSponsorView()
public
hasSponsorView(array<string|int, mixed> $attributes) : bool
Parameters
- $attributes : array<string|int, mixed>
Return values
boolinvalidatePendingVerify()
public
invalidatePendingVerify(User $user, string $action) : mixed
Parameters
- $user : User
- $action : string
isNoSponsorView()
public
isNoSponsorView(string|null $view) : bool
Parameters
- $view : string|null
Return values
boollikeOperator()
return the case-insensitive LIKE operator bases on the current database driver.
public
likeOperator() : string
Return values
stringmodel()
public
model() : mixed
mustVerifyEmail()
public
mustVerifyEmail(string|null $email, array<string|int, mixed> $attributes) : bool
Parameters
- $email : string|null
- $attributes : array<string|int, mixed>
Return values
boolmustVerifyPhoneNumber()
public
mustVerifyPhoneNumber(string|null $phoneNumber, array<string|int, mixed> $attributes) : bool
Parameters
- $phoneNumber : string|null
- $attributes : array<string|int, mixed>
Return values
boolresend()
public
resend(array<string|int, mixed> $params) : void
Parameters
- $params : array<string|int, mixed>
resendLink()
public
resendLink(User $user, string $action, string $verifiableValue) : void
Parameters
- $user : User
- $action : string
- $verifiableValue : string
Tags
sendVerificationEmail()
public
sendVerificationEmail(User $user, string $verifiable) : void
Parameters
- $user : User
- $verifiable : string
sendVerificationPhoneNumber()
public
sendVerificationPhoneNumber(User $user, string $verifiable) : void
Parameters
- $user : User
- $verifiable : string
where()
public
where(array<string|int, mixed> $params) : $this
Parameters
- $params : array<string|int, mixed>
Tags
Return values
$thiswithUserMorphTypeActiveScope()
public
withUserMorphTypeActiveScope() : self
Return values
selfcheckHasVerifyVerifiable()
protected
checkHasVerifyVerifiable(UserVerify $verify) : void
Parameters
- $verify : UserVerify
getLatestUserVerifyByUserId()
protected
getLatestUserVerifyByUserId(int $userId, string $verifiableValue) : UserVerify|null
Parameters
- $userId : int
- $verifiableValue : string
Return values
UserVerify|nullgetUserByVerifiableField()
protected
getUserByVerifiableField(string $verifiableField, string $verifiableValue) : User|null
Parameters
- $verifiableField : string
- $verifiableValue : string
Return values
User|nullshouldResend()
protected
shouldResend(int $userId, string $verifiableField, string $verifiableValue, string $verifyAtField) : bool
Parameters
- $userId : int
- $verifiableField : string
- $verifiableValue : string
- $verifyAtField : string
Return values
boolgetPendingQuery()
private
getPendingQuery(User $user, string $action) : Builder
Parameters
- $user : User
- $action : string