W3cubDocs

/Laravel 8

RequirePassword

class RequirePassword (View source)

Properties

protected ResponseFactory $responseFactory The response factory instance.
protected UrlGenerator $urlGenerator The URL generator instance.
protected int $passwordTimeout The password timeout.

Methods

void __construct(ResponseFactory $responseFactory, UrlGenerator $urlGenerator, int|null $passwordTimeout = null)

Create a new middleware instance.

mixed handle(Request $request, Closure $next, string|null $redirectToRoute = null)

Handle an incoming request.

bool shouldConfirmPassword(Request $request)

Determine if the confirmation timeout has expired.

Details

void __construct(ResponseFactory $responseFactory, UrlGenerator $urlGenerator, int|null $passwordTimeout = null)

Create a new middleware instance.

Parameters

ResponseFactory $responseFactory
UrlGenerator $urlGenerator
int|null $passwordTimeout

Return Value

void

mixed handle(Request $request, Closure $next, string|null $redirectToRoute = null)

Handle an incoming request.

Parameters

Request $request
Closure $next
string|null $redirectToRoute

Return Value

mixed

protected bool shouldConfirmPassword(Request $request)

Determine if the confirmation timeout has expired.

Parameters

Request $request

Return Value

bool

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Auth/Middleware/RequirePassword.html