Airport Guide Documentation

PasswordReset extends Model
in package
uses HasFactory

Password Reset Model

This model manages password reset functionality and security logs for the security system. It stores password reset requests, activation details, and tracking data for secure password reset workflows and security auditing.

Tags
used-by
AuthenticationController::resetPasswordUser()

Model to create reset records

used-by
AuthenticationController::resetPasswordConfirmUser()

Model to validate activation data

Table of Contents

Properties

$fillable  : array<string|int, string>
The attributes that are mass assignable.

Methods

__construct()  : void
Create a new PasswordReset model instance.
checkActivationDetails()  : Collection
Check correct activation details for forget password.
deleteByEmail()  : int
Delete the entry of used activation id for specific user.

Properties

$fillable

The attributes that are mass assignable.

protected array<string|int, string> $fillable = ['email', 'client_ip', 'createdDtm', 'activation_id', 'last_updated', 'agent']

Methods

__construct()

Create a new PasswordReset model instance.

public __construct() : void

Sets the table name from configuration constants.

checkActivationDetails()

Check correct activation details for forget password.

public checkActivationDetails(string $email, string $activation_id) : Collection

This function used to check correct activation details for forget password. Validates email and activation ID combination for password reset requests.

Parameters
$email : string

Email id of user

$activation_id : string

This is activation string

Return values
Collection

Collection of matching password reset records

deleteByEmail()

Delete the entry of used activation id for specific user.

public deleteByEmail(string $email) : int

This function used to delete the entry of used activation id for specific user. Removes password reset records for a specific email address.

Parameters
$email : string

Email id of user

Return values
int

Number of deleted records


        
On this page

Search results