Customer
class Customer extends Manager
Customer Class
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 |
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
No description
Registers a user by giving the required credentials
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 96
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 16
__construct()
No description
at line 21
customer()
No description
at line 26
isLogged()
No description
at line 31
getId()
No description
at line 36
getName()
No description
at line 41
getFirstName()
No description
at line 46
getLastName()
No description
at line 51
getEmail()
No description
at line 56
getTelephone()
No description
at line 61
getAddressId()
No description
at line 66
getGroupId()
No description
at line 80
Customers_model
register(array $attributes, bool $activate = false)
Registers a user by giving the required credentials