Menu

## MiddlewareTrait

MiddlewareTrait.php : 7

### Table of Contents

#### Methods

afterRequest() : mixed
  If provided, this hook will be called after the middleware runs against the request.
afterResponse() : mixed
  If provided, this hook is called after the middleware runs against the response.
beforeRequest() : mixed
  This hook is called before the middleware runs against the request.
beforeResponse() : mixed
  This method is called before the middleware runs against the response.
limitServicesTo() : Arrayable
  Only those services that are listed here will trigger the middleware to run

### Methods

#### afterRequest()

MiddlewareTrait.php : 29

If provided, this hook will be called after the middleware runs against the request.

`public afterRequest() : mixed`

#### afterResponse()

MiddlewareTrait.php : 42

If provided, this hook is called after the middleware runs against the response.

`public afterResponse() : mixed`

#### beforeRequest()

MiddlewareTrait.php : 22

This hook is called before the middleware runs against the request.

`public beforeRequest() : mixed`

#### beforeResponse()

MiddlewareTrait.php : 35

This method is called before the middleware runs against the response.

`public beforeResponse() : mixed`

#### limitServicesTo()

MiddlewareTrait.php : 14

Only those services that are listed here will trigger the middleware to run

`public limitServicesTo() : Arrayable`

##### Return values

Arrayable

## Search results