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

protected

$auth Factory

The authentication factory instance.

Default: null

Methods

public

__construct ( Factory $auth ) : void

Create a new middleware instance.

Parameters

public static

using ( $guard , $others ) : string

Specify the guards for the middleware.

Parameters

  • $guard string
  • $others string
public

handle ( $request , Closure $next , $guards ) : mixed

Handle an incoming request.

Parameters

protected

authenticate ( $request , array $guards ) : void

Determine if the user is logged in to any of the given guards.

Parameters

protected

unauthenticated ( $request , array $guards ) : void

Handle an unauthenticated user.

Parameters

protected

redirectTo ( Request $request ) : string|null

Get the path the user should be redirected to when they are not authenticated.

Parameters