MetaFox

AdminAccess extends Model
in package
implements Entity Uses HasEntity, HasUserMorph

Class AdminAccess.

Tags
mixin

Builder

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

$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
int

entityType()

public entityType() : string
Return values
string

getUserEntityAttribute()

public getUserEntityAttribute() : mixed

isUser()

check if $user is the user (creator) of entity.

public isUser(User $user) : bool
Parameters
$user : User
Return values
bool

moduleName()

public moduleName() : string
Return values
string

userEntity()

public userEntity() : BelongsTo
Return values
BelongsTo

userType()

public userType() : string
Return values
string

        
On this page

Search results