PHP Class Chrisbjr\ApiGuard\ApiGuardAuth

Afficher le fichier Open project: chrisbjr/api-guard

Protected Properties

Свойство Type Description
$auth

Méthodes publiques

Méthode Description
__construct ( Chrisbjr\ApiGuard\Contracts\Providers\Auth $auth )
authenticate ( ApiKeyRepository $apiKey ) : boolean | mixed Authenticate a user via the API key.
getUser ( ) Get the authenticated user.
isAuthenticated ( ) : boolean Determines if we have an authenticated user

Method Details

__construct() public méthode

public __construct ( Chrisbjr\ApiGuard\Contracts\Providers\Auth $auth )
$auth Chrisbjr\ApiGuard\Contracts\Providers\Auth

authenticate() public méthode

Authenticate a user via the API key.
public authenticate ( ApiKeyRepository $apiKey ) : boolean | mixed
$apiKey Chrisbjr\ApiGuard\Repositories\ApiKeyRepository
Résultat boolean | mixed

getUser() public méthode

Get the authenticated user.
public getUser ( )

isAuthenticated() public méthode

Determines if we have an authenticated user
public isAuthenticated ( ) : boolean
Résultat boolean

Property Details

$auth protected_oe property

protected $auth