class Authenticate implements AuthenticatesRequests (View source)
| protected Factory | $auth | The authentication factory instance. | |
| static protected callable | $redirectToCallback | The callback that should be used to generate the authentication redirect path. |
| void | __construct(Factory $auth)
Create a new middleware instance. | |
| static string | using(string $guard, string ...$others)
Specify the guards for the middleware. | |
| mixed | handle(Request $request, Closure $next, string[] ...$guards)
Handle an incoming request. | |
| void | authenticate(Request $request, array $guards)
Determine if the user is logged in to any of the given guards. | |
| void | unauthenticated(Request $request, array $guards)
Handle an unauthenticated user. | |
| string|null | redirectTo(Request $request)
Get the path the user should be redirected to when they are not authenticated. | |
| static void | redirectUsing(callable $redirectToCallback)
Specify the callback that should be used to generate the redirect path. |
Create a new middleware instance.
Specify the guards for the middleware.
Determine if the user is logged in to any of the given guards.
Handle an unauthenticated user.
Get the path the user should be redirected to when they are not authenticated.
Specify the callback that should be used to generate the redirect path.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Auth/Middleware/Authenticate.html