class
Illuminate
/
Auth
/
Middleware
/
RequirePassword
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
RequirePassword
Properties
protected
$passwordTimeout int
The password timeout.
Default: null
Methods
public
__construct ( ResponseFactory $responseFactory , UrlGenerator $urlGenerator , $passwordTimeout ) : void
Create a new middleware instance.
Parameters
- $responseFactory ResponseFactory
- $urlGenerator UrlGenerator
- $passwordTimeout int|null
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
protected
shouldConfirmPassword ( $request , $passwordTimeoutSeconds ) : bool
Determine if the confirmation timeout has expired.
Parameters
- $request Request
- $passwordTimeoutSeconds int|null