User
class User extends Manager
Admin User authentication manager
Constants
AUTH_KEY_NAME |
|
Properties
protected | $sessionKey | ||
protected User | $user | from Manager | |
protected | $model | ||
protected | $requireApproval | from Manager | |
protected bool | $useSession | from Manager | |
protected bool | $viaRemember | from Manager | |
protected | $isSuperUser |
Methods
Validate a user using the given credentials.
Log a user into the application without sessions or cookies.
Log the given user ID into the application without sessions or cookies.
Log the given user ID into the application.
Impersonates the given user and sets properties in the session but not the cookie.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
in
Manager at line 50
check()
Determine if the current user is authenticated.
in
Manager at line 96
guest()
Determine if the current user is a guest.
in
Manager at line 119
int|null
id()
Get the ID for the currently authenticated user.
in
Manager at line 138
setUser($user)
Set the current user model
in
Manager at line 153
User|bool
authenticate(array $credentials = [], bool $remember = false, bool $login = true)
Validate a user using the given credentials.
in
Manager at line 176
bool
once(array $credentials = [])
Log a user into the application without sessions or cookies.
in
Manager at line 193
Authenticatable|false
onceUsingId(mixed $id)
Log the given user ID into the application without sessions or cookies.
in
Manager at line 212
login(Authenticatable $user, bool $remember = false)
Log a user into the application.
in
Manager at line 247
mixed
loginUsingId($id, bool $remember = false)
Log the given user ID into the application.
in
Manager at line 262
void
logout()
Log the user out of the application.
in
Manager at line 290
bool
viaRemember()
Determine if the user was authenticated via "remember me" cookie.
in
Manager at line 318
mixed
getByToken($identifier, $token)
No description
in
Manager at line 368
mixed
createModel()
Create a new instance of the model if it does not already exist.
in
Manager at line 383
protected
createModelQuery()
Prepares a query derived from the user model.
at line 48
void
extendUserQuery(Builder $query)
Extend the query used for finding the user.
in
Manager at line 407
string
getModel()
Gets the name of the user model
in
Manager at line 419
$this
setModel($model)
Sets the name of the user model
in
Manager at line 432
protected array
getPersistData(Authenticatable|User $user)
Create a new "remember me" token for the user
in
Manager at line 451
impersonate(User $user)
Impersonates the given user and sets properties in the session but not the cookie.
in
Manager at line 464
stopImpersonate()
No description
in
Manager at line 480
isImpersonator()
No description
in
Manager at line 485
getImpersonator()
No description
at line 18
isLogged()
No description
at line 23
isSuperUser()
No description
at line 31
Staffs_model
staff()
No description
at line 39
Collection
locations()
No description
at line 61
getId()
No description
at line 66
getUserName()
No description
at line 71
getStaffId()
No description
at line 76
getStaffName()
No description
at line 81
getStaffEmail()
No description
at line 86
register(array $attributes, $activate = FALSE)
No description