MetaFox

UserActivity extends Model
in package
implements Entity Uses HasEntity, HasFactory

Class UserActivity.

Table of Contents

Interfaces

Entity
Interface Entity.

Constants

ENTITY_TYPE  = 'user_activity'

Properties

$id  : int
$last_activity  : string
$last_ip_address  : string
$last_login  : string
$timestamps  : mixed
$casts  : array<string, string>
The attributes that should be cast to native types.
$fillable  : array<string|int, string>
$table  : mixed

Methods

entityId()  : int
entityType()  : string
factory()  : UserActivityFactory
moduleName()  : string
newFactory()  : UserActivityFactory

Constants

Properties

$casts

The attributes that should be cast to native types.

protected array<string, string> $casts = ['last_activity' => 'datetime', 'last_login' => 'datetime']

$fillable

protected array<string|int, string> $fillable = ['last_login', 'last_activity', 'last_ip_address']

Methods

entityId()

public entityId() : int
Return values
int

entityType()

public entityType() : string
Return values
string

factory()

public static factory(mixed $parameters) : UserActivityFactory
Parameters
$parameters : mixed
Return values
UserActivityFactory

moduleName()

public moduleName() : string
Return values
string

newFactory()

protected static newFactory() : UserActivityFactory
Return values
UserActivityFactory

        
On this page

Search results