An administrative user login

Each log entry in this table represents a single login session for an administrative user.

class AdminLog extends AbstractModel

Properties summary

Type Property Description
$timestamps
$unique
int $id A log entry's unique id number.
string $username An admin's username.
DateTime $loginTime An admin's login time.
DateTime $logoutTime An admin's logout time.
string $ipAddress An admin's ip address.
string $sessionId An admin's login session id.
DateTime $lastVisit An admin's last visit time.

Methods summary

Return Type Method Name Description
belongsTo admin() An admin log entry belongs to an admin user.
Builder scopeOnline(Builder $query) Retrieve all admin users who are online.

Details

belongsTo admin ()

An admin log entry belongs to an admin user.

Return Value

belongsTo

Builder scopeOnline (Builder $query)

Retrieve all admin users who are online.

Parameters

Builder $query

Return Value

Builder