\App\ProvidersCustomUserProvider

Summary

Methods
Properties
Constants
__construct()
retrieveById()
retrieveByToken()
updateRememberToken()
retrieveByCredentials()
validateCredentials()
createModel()
getModel()
setModel()
No public properties found
No constants found
newModelQuery()
$model
N/A
No private methods found
No private properties found
N/A

Properties

$model

$model : string

The Eloquent user model.

Type

string

Methods

__construct()

__construct(  $model) 

Parameters

$model

retrieveById()

retrieveById(mixed  $identifier) : \Illuminate\Contracts\Auth\Authenticatable|null

Retrieve a user by their unique identifier.

Parameters

mixed $identifier

Returns

\Illuminate\Contracts\Auth\Authenticatable|null

retrieveByToken()

retrieveByToken(mixed  $identifier, string  $token) : \Illuminate\Contracts\Auth\Authenticatable|null

Retrieve a user by their unique identifier and "remember me" token.

Parameters

mixed $identifier
string $token

Returns

\Illuminate\Contracts\Auth\Authenticatable|null

updateRememberToken()

updateRememberToken(\Illuminate\Contracts\Auth\Authenticatable|\Illuminate\Database\Eloquent\Model  $user, string  $token) : void

Update the "remember me" token for the given user in storage.

Parameters

\Illuminate\Contracts\Auth\Authenticatable|\Illuminate\Database\Eloquent\Model $user
string $token

retrieveByCredentials()

retrieveByCredentials(array  $credentials) : \Illuminate\Contracts\Auth\Authenticatable|null

Retrieve a user by the given credentials.

Parameters

array $credentials

Returns

\Illuminate\Contracts\Auth\Authenticatable|null

validateCredentials()

validateCredentials(\Illuminate\Contracts\Auth\Authenticatable  $user, array  $credentials) : boolean

Validate a user against the given credentials.

Parameters

\Illuminate\Contracts\Auth\Authenticatable $user
array $credentials

Returns

boolean

createModel()

createModel() : \Illuminate\Database\Eloquent\Model

Create a new instance of the model.

Returns

\Illuminate\Database\Eloquent\Model

getModel()

getModel() : string

Gets the name of the Eloquent user model.

Returns

string

setModel()

setModel(string  $model) : $this

Sets the name of the Eloquent user model.

Parameters

string $model

Returns

$this

newModelQuery()

newModelQuery(\Illuminate\Database\Eloquent\Model|null  $model = null) : \Illuminate\Database\Eloquent\Builder

Get a new query builder for the model instance.

Parameters

\Illuminate\Database\Eloquent\Model|null $model

Returns

\Illuminate\Database\Eloquent\Builder