class Illuminate / Auth / Middleware / Authenticate
You are viewing an older version of the documentation. For the latest, please visit master documentation.

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

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 ) : string|null

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

Parameters