ResetPasswordRequest
class ResetPasswordRequest extends FormRequest (View source)
Handles validation for password reset requests.
This request ensures that the new password meets security and structural requirements before allowing an update.
It trims whitespace, validates the password strength through {\App\Helpers\Validators::validatePasswordStructure()}, and requires confirmation.
Methods
Determines if the user is authorized to perform this request.
Defines the validation rules for the password reset process.
Custom error messages for password validation.
Normalizes input before validation.
Provides access to the session instance.
Merges additional input into the current request data.
Retrieves input from the request.
Details
bool
authorize()
Determines if the user is authorized to perform this request.
Since password reset happens in a recovery flow, all users are allowed.
array
rules()
Defines the validation rules for the password reset process.
array
messages()
Custom error messages for password validation.
protected void
prepareForValidation()
Normalizes input before validation.
This method trims whitespace from password fields to avoid validation failures caused by accidental spaces.
Store
session()
Provides access to the session instance.
void
merge(array $input = [])
Merges additional input into the current request data.
mixed
input(string|null $key = null, mixed $default = null)
Retrieves input from the request.