class RequirePassword (View source)
| protected ResponseFactory | $responseFactory | The response factory instance. | |
| protected UrlGenerator | $urlGenerator | The URL generator instance. | |
| protected int | $passwordTimeout | The password timeout. |
| void | __construct(ResponseFactory $responseFactory, UrlGenerator $urlGenerator, int|null $passwordTimeout = null)
Create a new middleware instance. | |
| static string | using(string|null $redirectToRoute = null, string|int|null $passwordTimeoutSeconds = null)
Specify the redirect route and timeout for the middleware. | |
| mixed | handle(Request $request, Closure $next, string|null $redirectToRoute = null, string|int|null $passwordTimeoutSeconds = null)
Handle an incoming request. | |
| bool | shouldConfirmPassword(Request $request, int|null $passwordTimeoutSeconds = null)
Determine if the confirmation timeout has expired. |
Create a new middleware instance.
Specify the redirect route and timeout for the middleware.
Handle an incoming request.
Determine if the confirmation timeout has expired.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Auth/Middleware/RequirePassword.html