class
Illuminate
/
Auth
/
Middleware
/
Authenticate
You are viewing an older version of the documentation. For the latest, please visit master documentation.
Authenticate
Implements
Properties
Methods
public
__construct ( Factory $auth ) : void
Create a new middleware instance.
Parameters
- $auth Factory
protected
authenticate ( $request , array $guards ) : void
Determine if the user is logged in to any of the given guards.
Parameters
- $request Request
- $guards array
protected
unauthenticated ( $request , array $guards ) : void
Handle an unauthenticated user.
Parameters
- $request Request
- $guards array
protected
redirectTo ( $request ) : string|null
Get the path the user should be redirected to when they are not authenticated.
Parameters
- $request Request