MetaFox

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

Class PasswordResetToken.

Table of Contents

Interfaces

Entity
Interface Entity.

Constants

ENTITY_TYPE  = 'password_reset_token'

Properties

$created_at  : string
$expired_at  : string
$id  : int
$password_form_link  : string
$updated_at  : string
$value  : string
$appends  : array<string|int, string>
$fillable  : array<string|int, string>
$table  : mixed

Methods

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

Constants

Properties

$fillable

protected array<string|int, string> $fillable = ['user_id', 'user_type', 'value', 'expired_at', 'created_at', 'updated_at']

Methods

entityId()

public entityId() : int
Return values
int

entityType()

public entityType() : string
Return values
string

factory()

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

getPasswordFormLinkAttribute()

public getPasswordFormLinkAttribute() : string
Return values
string

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

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() : PasswordResetTokenFactory
Return values
PasswordResetTokenFactory

        
On this page

Search results