class Illuminate / Auth / Middleware / RequirePassword

RequirePassword

Properties

protected

$responseFactory ResponseFactory

The response factory instance.

Default: null
protected

$urlGenerator UrlGenerator

The URL generator instance.

Default: null
protected

$passwordTimeout int

The password timeout.

Default: null

Methods

public

__construct ( ResponseFactory $responseFactory , UrlGenerator $urlGenerator , $passwordTimeout ) : void

Create a new middleware instance.

Parameters

public static

using ( $redirectToRoute , $passwordTimeoutSeconds ) : string

Specify the redirect route and timeout for the middleware.

Parameters

  • $redirectToRoute string|null
  • $passwordTimeoutSeconds string|int|null
public

handle ( $request , Closure $next , $redirectToRoute , $passwordTimeoutSeconds ) : mixed

Handle an incoming request.

Parameters

  • $request Request
  • $next Closure
  • $redirectToRoute string|null
  • $passwordTimeoutSeconds string|int|null
protected

shouldConfirmPassword ( $request , $passwordTimeoutSeconds ) : bool

Determine if the confirmation timeout has expired.

Parameters

  • $request Request
  • $passwordTimeoutSeconds int|null