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
ENTITY_TYPE
public
mixed
ENTITY_TYPE
= 'password_reset_token'
Properties
$created_at
public
string
$created_at
$expired_at
public
string
$expired_at
$id
public
int
$id
$password_form_link
public
string
$password_form_link
$updated_at
public
string
$updated_at
$value
public
string
$value
$appends
protected
array<string|int, string>
$appends
= ['password_form_link']
$fillable
protected
array<string|int, string>
$fillable
= ['user_id', 'user_type', 'value', 'expired_at', 'created_at', 'updated_at']
$table
protected
mixed
$table
= 'user_reset_password_token'
Methods
entityId()
public
entityId() : int
Return values
intentityType()
public
entityType() : string
Return values
stringfactory()
public
static factory(mixed $parameters) : PasswordResetTokenFactory
Parameters
- $parameters : mixed
Return values
PasswordResetTokenFactorygetPasswordFormLinkAttribute()
public
getPasswordFormLinkAttribute() : string
Return values
stringgetUserAttribute()
public
getUserAttribute() : mixed
getUserEntityAttribute()
public
getUserEntityAttribute() : mixed
isUser()
check if $user is the user (creator) of entity.
public
isUser(User $user) : bool
Parameters
- $user : User
Return values
boolmoduleName()
public
moduleName() : string
Return values
stringuser()
public
user() : MorphTo
Return values
MorphTouserEntity()
public
userEntity() : BelongsTo
Return values
BelongsTouserId()
public
userId() : int
Return values
intuserType()
public
userType() : string
Return values
stringnewFactory()
protected
static newFactory() : PasswordResetTokenFactory