# WHMCS\User\AdminLog

`Class` · extends `AbstractModel`

An administrative user login

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

## Properties

| Type | Name | Description |
|  --- | --- | --- |
| `` | `$timestamps` |  |
| `` | `$unique` |  |


## Methods

### admin

```php
public function admin()
```

An admin log entry belongs to an admin user.

**Returns** `\Illuminate\Database\Eloquent\Relations\belongsTo`

### scopeOnline

```php
public function scopeOnline($query)
```

Retrieve all admin users who are online.

**Parameters**

| Type | Name | Description |
|  --- | --- | --- |
| `\Illuminate\Database\Eloquent\Builder` | `$query` |  |


**Returns** `\Illuminate\Database\Eloquent\Builder`

### scopeOffline

```php
public function scopeOffline($query)
```

Retrieve all admin users who are offline.

**Parameters**

| Type | Name | Description |
|  --- | --- | --- |
| `\Illuminate\Database\Eloquent\Builder` | `$query` |  |


**Returns** `\Illuminate\Database\Eloquent\Builder`

### getLastVisitFormattedAttribute

```php
public function getLastVisitFormattedAttribute(): string
```