class EnsureRecoveryCodeWasSent (View source)

Middleware that ensures a recovery code has been requested before allowing the user to proceed to the code validation step.

This is used in the password recovery flow to prevent direct access to code validation routes without first requesting a recovery code.

Methods

Response
handle(Request $request, Closure $next)

Handle an incoming request.

Details

Response handle(Request $request, Closure $next)

Handle an incoming request.

Parameters

Request $request

the current HTTP request instance

Closure $next

the next middleware or request handler

Return Value

Response

See also

RecoverySessionKey For session key constants used in the password recovery flow.