PHP Класс MongolidLaravel\MongolidUserProvider

Наследование: implements Illuminate\Contracts\Auth\UserProvider
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$hasher Illuminate\Contracts\Hashing\Hasher The hasher implementation.
$model MongolidLaravel\MongoLidModel The MongoLid user model.

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

Метод Описание
__construct ( Illuminate\Contracts\Hashing\Hasher $hasher, MongolidLaravel\MongoLidModel $model ) Create a new database user provider.
retrieveByCredentials ( array $credentials ) : Illuminate\Contracts\Auth\Authenticatable | null Retrieve a user by the given credentials.
retrieveByID ( mixed $identifier ) : Illuminate\Contracts\Auth\Authenticatable | null Retrieve a user by their unique identifier.
retrieveByToken ( mixed $identifier, string $token ) : Illuminate\Contracts\Auth\Authenticatable | null Retrieve a user by by their unique identifier and "remember me" token.
updateRememberToken ( Illuminate\Contracts\Auth\Authenticatable $user, string $token ) Update the "remember me" token for the given user in storage.
validateCredentials ( Illuminate\Contracts\Auth\Authenticatable $user, array $credentials ) : boolean Validate a user against the given credentials.

Защищенные методы

Метод Описание
createModel ( ) : MongolidLaravel\MongoLidModel Create a new instance of the model.

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

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

Create a new database user provider.
public __construct ( Illuminate\Contracts\Hashing\Hasher $hasher, MongolidLaravel\MongoLidModel $model )
$hasher Illuminate\Contracts\Hashing\Hasher
$model MongolidLaravel\MongoLidModel

createModel() защищенный Метод

Create a new instance of the model.
protected createModel ( ) : MongolidLaravel\MongoLidModel
Результат MongolidLaravel\MongoLidModel

retrieveByCredentials() публичный Метод

Retrieve a user by the given credentials.
public retrieveByCredentials ( array $credentials ) : Illuminate\Contracts\Auth\Authenticatable | null
$credentials array
Результат Illuminate\Contracts\Auth\Authenticatable | null

retrieveByID() публичный Метод

Retrieve a user by their unique identifier.
public retrieveByID ( mixed $identifier ) : Illuminate\Contracts\Auth\Authenticatable | null
$identifier mixed
Результат Illuminate\Contracts\Auth\Authenticatable | null

retrieveByToken() публичный Метод

Retrieve a user by by their unique identifier and "remember me" token.
public retrieveByToken ( mixed $identifier, string $token ) : Illuminate\Contracts\Auth\Authenticatable | null
$identifier mixed
$token string
Результат Illuminate\Contracts\Auth\Authenticatable | null

updateRememberToken() публичный Метод

Update the "remember me" token for the given user in storage.
public updateRememberToken ( Illuminate\Contracts\Auth\Authenticatable $user, string $token )
$user Illuminate\Contracts\Auth\Authenticatable
$token string

validateCredentials() публичный Метод

Validate a user against the given credentials.
public validateCredentials ( Illuminate\Contracts\Auth\Authenticatable $user, array $credentials ) : boolean
$user Illuminate\Contracts\Auth\Authenticatable
$credentials array
Результат boolean

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

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

The hasher implementation.
protected Hasher,Illuminate\Contracts\Hashing $hasher
Результат Illuminate\Contracts\Hashing\Hasher

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

The MongoLid user model.
protected MongoLidModel,MongolidLaravel $model
Результат MongolidLaravel\MongoLidModel