PHP Interface Chrisbjr\ApiGuard\Contracts\Providers\Auth

Afficher le fichier Open project: chrisbjr/api-guard

Méthodes publiques

Méthode Description
byCredentials ( array $credentials ) : boolean Check a user's credentials
byId ( mixed $id ) : boolean Authenticate a user via the id
user ( ) : mixed Get the currently authenticated user

Method Details

byCredentials() public méthode

Check a user's credentials
public byCredentials ( array $credentials ) : boolean
$credentials array
Résultat boolean

byId() public méthode

Authenticate a user via the id
public byId ( mixed $id ) : boolean
$id mixed
Résultat boolean

user() public méthode

Get the currently authenticated user
public user ( ) : mixed
Résultat mixed