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
protected $table
protected $columnMap
$timestamps
$unique
int $id A log entry's unique id number.
string $username An admin's username.
Carbon $loginTime An admin's login time.
Carbon $logoutTime An admin's logout time.
string $ipAddress An admin's ip address.
string $sessionId An admin's login session id.
Carbon $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