PHP Класс Chrisbjr\ApiGuard\ApiGuardAuth

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$auth

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный метод

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

authenticate() публичный метод

Authenticate a user via the API key.
public authenticate ( ApiKeyRepository $apiKey ) : boolean | mixed
$apiKey Chrisbjr\ApiGuard\Repositories\ApiKeyRepository
Результат boolean | mixed

getUser() публичный метод

Get the authenticated user.
public getUser ( )

isAuthenticated() публичный метод

Determines if we have an authenticated user
public isAuthenticated ( ) : boolean
Результат boolean

Описание свойств

$auth защищенное свойство

protected $auth