PHP Class Dingo\Api\Http\Middleware\Auth

显示文件 Open project: dingo/api

Protected Properties

Property Type Description
$auth Dingo\Api\Auth\Auth Authenticator instance.
$router Dingo\Api\Routing\Router Router instance.

Public Methods

Method Description
__construct ( Router $router, Dingo\Api\Auth\Auth $auth ) : void Create a new auth middleware instance.
handle ( Illuminate\Http\Request $request, Closure $next ) : mixed Perform authentication before a request is executed.

Method Details

__construct() public method

Create a new auth middleware instance.
public __construct ( Router $router, Dingo\Api\Auth\Auth $auth ) : void
$router Dingo\Api\Routing\Router
$auth Dingo\Api\Auth\Auth
return void

handle() public method

Perform authentication before a request is executed.
public handle ( Illuminate\Http\Request $request, Closure $next ) : mixed
$request Illuminate\Http\Request
$next Closure
return mixed

Property Details

$auth protected_oe property

Authenticator instance.
protected Auth,Dingo\Api\Auth $auth
return Dingo\Api\Auth\Auth

$router protected_oe property

Router instance.
protected Router,Dingo\Api\Routing $router
return Dingo\Api\Routing\Router