class
Illuminate
/
Auth
/
Middleware
/
Authenticate
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
Authenticate
Implements
Properties
Methods
public
__construct ( Factory $auth ) : void
Create a new middleware instance.
Parameters
- $auth Factory
public
static
using ( $guard , $others ) : string
Specify the guards for the middleware.
Parameters
- $guard string
- $others string
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