Property | Type | Description | |
---|---|---|---|
$hasher | Cartalyst\Sentinel\Hashing\HasherInterface | The hasher instance. | |
$model | string | The Eloquent user model name. |
Method | Description | |
---|---|---|
__construct ( Cartalyst\Sentinel\Hashing\HasherInterface $hasher, Illuminate\Events\Dispatcher $dispatcher = null, string $model = null ) : void | Create a new Illuminate user repository. | |
create ( array $credentials, Closure $callback = null ) | {@inheritDoc} | |
fill ( Cartalyst\Sentinel\Users\UserInterface $user, array $credentials ) : void | Fills a user with the given credentials, intelligently. | |
findByCredentials ( array $credentials ) | {@inheritDoc} | |
findById ( $id ) | {@inheritDoc} | |
findByPersistenceCode ( $code ) | {@inheritDoc} | |
getHasher ( ) : Cartalyst\Sentinel\Hashing\HasherInterface | Returns the hasher instance. | |
recordLogin ( Cartalyst\Sentinel\Users\UserInterface $user ) | {@inheritDoc} | |
recordLogout ( Cartalyst\Sentinel\Users\UserInterface $user ) | {@inheritDoc} | |
setHasher ( Cartalyst\Sentinel\Hashing\HasherInterface $hasher ) : void | Sets the hasher instance. | |
update ( $user, array $credentials ) | {@inheritDoc} | |
validForCreation ( array $credentials ) | {@inheritDoc} | |
validForUpdate ( $user, array $credentials ) | {@inheritDoc} | |
validateCredentials ( Cartalyst\Sentinel\Users\UserInterface $user, array $credentials ) | {@inheritDoc} |
Method | Description | |
---|---|---|
parseCredentials ( array $credentials, array $loginNames ) : array | Parses the given credentials to return logins, password and others. | |
validateUser ( array $credentials, integer $id = null ) : boolean | Validates the user. |
public __construct ( Cartalyst\Sentinel\Hashing\HasherInterface $hasher, Illuminate\Events\Dispatcher $dispatcher = null, string $model = null ) : void | ||
$hasher | Cartalyst\Sentinel\Hashing\HasherInterface | |
$dispatcher | Illuminate\Events\Dispatcher | |
$model | string | |
return | void |
public findByCredentials ( array $credentials ) | ||
$credentials | array |
public getHasher ( ) : Cartalyst\Sentinel\Hashing\HasherInterface | ||
return | Cartalyst\Sentinel\Hashing\HasherInterface |
public recordLogin ( Cartalyst\Sentinel\Users\UserInterface $user ) | ||
$user | Cartalyst\Sentinel\Users\UserInterface |
public recordLogout ( Cartalyst\Sentinel\Users\UserInterface $user ) | ||
$user | Cartalyst\Sentinel\Users\UserInterface |
public validForCreation ( array $credentials ) | ||
$credentials | array |
public validForUpdate ( $user, array $credentials ) | ||
$credentials | array |
public validateCredentials ( Cartalyst\Sentinel\Users\UserInterface $user, array $credentials ) | ||
$user | Cartalyst\Sentinel\Users\UserInterface | |
$credentials | array |
protected HasherInterface,Cartalyst\Sentinel\Hashing $hasher | ||
return | Cartalyst\Sentinel\Hashing\HasherInterface |