AccessLog
Model for logging access to the back-end
class Backend\Models\AccessLog
extends Model
Extends
Class | Description |
---|---|
Model
|
Properties
public
$belongsTo
:
array
= {"user":{}}
Relations
protected
$table
:
string
= "backend_access_log"
The database table used by the model.
Methods
public static add (Backend\Models\User $user) : self
Creates a log record
Parameters
Property | Type | Description |
---|---|---|
$user | Backend\Models\User |
Admin user |
Returns
self
public static getRecent ($user) : self
Returns a recent entry, latest entry is not considered recent if the creation day is the same as today.
Parameters
Property | Type | Description |
---|---|---|
$user | mixed |
mixed
|
Returns
self
← Previous page
Backend\Helpers\Exception\DecompileException
Next page →
Backend\Models\BrandSetting
Copyright © 2024 Winter CMS