PHP Class Chrisbjr\ApiGuard\Http\Middleware\ApiGuard

Show file Open project: chrisbjr/api-guard

Protected Properties

Property Type Description
$apiKey Chrisbjr\ApiGuard\Models\ApiKey
$apiLog Chrisbjr\ApiGuard\Models\ApiLog
$apiMethods

Public Methods

Method Description
handle ( Illuminate\Http\Request $request, Closure $next, null $serializedApiMethods = null ) : mixed Handle an incoming request.

Private Methods

Method Description
getRouteMethod ( )

Method Details

handle() public method

Handle an incoming request.
public handle ( Illuminate\Http\Request $request, Closure $next, null $serializedApiMethods = null ) : mixed
$request Illuminate\Http\Request
$next Closure
$serializedApiMethods null
return mixed

Property Details

$apiKey protected property

protected ApiKey,Chrisbjr\ApiGuard\Models $apiKey
return Chrisbjr\ApiGuard\Models\ApiKey

$apiLog protected property

protected ApiLog,Chrisbjr\ApiGuard\Models $apiLog
return Chrisbjr\ApiGuard\Models\ApiLog

$apiMethods protected property

protected $apiMethods