Menu

## AuthenticationChainContract
in

AuthenticationChainContract.php : 7

### Table of Contents

#### Methods

addAfter() : static
  Add an authentication after another
addAuthenticationBackend() : mixed
  Adds an authentication backend to the chain
addBefore() : static
  Add an authentication backend before another
getAuthentications() : array<string|int, mixed>
  Get the authentications in chain
handle() : mixed
  Run the authentication chain on a request
next() : mixed
  Run the next authentication backend in the chain.

### Methods

#### addAfter()

AuthenticationChainContract.php : 27

Add an authentication after another

`public addAfter(string $authToPoint, string $authToAdd) : static`

##### Parameters

$authToPoint : string
$authToAdd : string

##### Return values

static

#### addAuthenticationBackend()

AuthenticationChainContract.php : 12

Adds an authentication backend to the chain

`public addAuthenticationBackend(string $authenticationContract) : mixed`

##### Parameters

$authenticationContract : string

#### addBefore()

AuthenticationChainContract.php : 22

Add an authentication backend before another

`public addBefore(string $authToPoint, string $authToAdd) : static`

##### Parameters

$authToPoint : string
$authToAdd : string

##### Return values

static

#### getAuthentications()

AuthenticationChainContract.php : 17

Get the authentications in chain

`public getAuthentications() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

#### handle()

AuthenticationChainContract.php : 32

Run the authentication chain on a request

`public handle(Request $request) : mixed`

##### Parameters

$request : Request

#### next()

AuthenticationChainContract.php : 37

Run the next authentication backend in the chain.

`public next(Request $request, AuthenticationContract $next) : mixed`

##### Parameters

$request : Request
$next : AuthenticationContract

## Search results