MetaFox

UserVerify extends Model
in package
implements Entity Uses HasEntity, HasFactory, HasUserMorph

Class UserVerify.

Table of Contents

Interfaces

Entity
Interface Entity.

Constants

ACTION_EMAIL  = 'verify_email'
ACTION_PHONE_NUMBER  = 'verify_phone_number'
ENTITY_TYPE  = 'user_verify'

Properties

$action  : string|null
$expires_at  : string|null
$hash_code  : string
$id  : int
$timestamps  : mixed
$user_id  : string
$user_type  : string
$verifiable  : string|null
$fillable  : array<string|int, string>
$table  : mixed

Methods

entityId()  : int
entityType()  : string
factory()  : UserVerifyFactory
getUserAttribute()  : mixed
getUserEntityAttribute()  : mixed
isUser()  : bool
check if $user is the user (creator) of entity.
markAsVerified()  : mixed
maskAsExpired()  : mixed
moduleName()  : string
user()  : MorphTo
userEntity()  : BelongsTo
userId()  : int
userType()  : string
newFactory()  : UserVerifyFactory

Constants

ACTION_EMAIL

public mixed ACTION_EMAIL = 'verify_email'

ACTION_PHONE_NUMBER

public mixed ACTION_PHONE_NUMBER = 'verify_phone_number'

ENTITY_TYPE

public mixed ENTITY_TYPE = 'user_verify'

Properties

$fillable

protected array<string|int, string> $fillable = ['verifiable', 'hash_code', 'action', 'expires_at', 'user_id', 'user_type', 'is_verified']

Methods

entityId()

public entityId() : int
Return values
int

entityType()

public entityType() : string
Return values
string

factory()

public static factory(mixed $parameters) : UserVerifyFactory
Parameters
$parameters : mixed
Return values
UserVerifyFactory

getUserEntityAttribute()

public getUserEntityAttribute() : mixed

isUser()

check if $user is the user (creator) of entity.

public isUser(User $user) : bool
Parameters
$user : User
Return values
bool

markAsVerified()

public markAsVerified() : mixed

moduleName()

public moduleName() : string
Return values
string

userEntity()

public userEntity() : BelongsTo
Return values
BelongsTo

userType()

public userType() : string
Return values
string

newFactory()

protected static newFactory() : UserVerifyFactory
Return values
UserVerifyFactory

        
On this page

Search results