AccessLog

Model for logging access to the back-end

 class Backend\Models\AccessLog
extends Model

Properties

public $belongsTo : array

Relations

protected $table : string

The database table used by the model.

Methods

public static add (Backend\Models\User $user) : self

Creates a log record

Parameters
Property Description
$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 Description
$user
mixed
Returns
self
Copyright © 2024 Winter CMS