AdminAccess
extends Model
in package
implements
Entity
Uses
HasEntity, HasUserMorph
Class AdminAccess.
Tags
Table of Contents
Interfaces
- Entity
- Interface Entity.
Constants
- ENTITY_TYPE = 'admincp_access'
- USER_ACTIVE_LIMIT_IN_MINUTES = 5
Properties
- $created_at : string
- $id : int
- $ip_address : string
- $updated_at : string
- $fillable : array<string|int, string>
- $table : mixed
Methods
- entityId() : int
- entityType() : string
- getUserAttribute() : mixed
- getUserEntityAttribute() : mixed
- isUser() : bool
- check if $user is the user (creator) of entity.
- moduleName() : string
- user() : MorphTo
- userEntity() : BelongsTo
- userId() : int
- userType() : string
Constants
ENTITY_TYPE
public
mixed
ENTITY_TYPE
= 'admincp_access'
USER_ACTIVE_LIMIT_IN_MINUTES
public
mixed
USER_ACTIVE_LIMIT_IN_MINUTES
= 5
Properties
$created_at
public
string
$created_at
$id
public
int
$id
$ip_address
public
string
$ip_address
$updated_at
public
string
$updated_at
$fillable
protected
array<string|int, string>
$fillable
= ['user_id', 'user_type', 'ip_address', 'created_at', 'updated_at']
$table
protected
mixed
$table
= 'core_admincp_accesses'
Methods
entityId()
public
entityId() : int
Return values
intentityType()
public
entityType() : string
Return values
stringgetUserAttribute()
public
getUserAttribute() : mixed
getUserEntityAttribute()
public
getUserEntityAttribute() : mixed
isUser()
check if $user is the user (creator) of entity.
public
isUser(User $user) : bool
Parameters
- $user : User
Return values
boolmoduleName()
public
moduleName() : string
Return values
stringuser()
public
user() : MorphTo
Return values
MorphTouserEntity()
public
userEntity() : BelongsTo
Return values
BelongsTouserId()
public
userId() : int
Return values
intuserType()
public
userType() : string