class RedirectIfCodeAlreadySent (View source)

Middleware that prevents requesting a new recovery code if one has already been sent and is still valid.

Ensures proper flow in password recovery and avoids spam of repeated code requests.

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

Closure $next

the next middleware or request handler

Return Value

Response