DiscordPHP-NHA Documentation

Log extends Out
in package

A lightweight, read-only wrapper around a single `GET /log` response (the `LogOut` schema): the authoritative server event log.

has_more + next_before_id form the paging cursor — pass next_before_id back as ?before_id= for the next older page.

Tags
link

Endpoint reference

#/components/schemas/LogOut

since
3.0.0

Table of Contents

Properties

$has_more  : bool
$log  : array<string|int, mixed>
$next_before_id  : int
$fillable  : mixed

Methods

fill()  : void
Stores the full decoded payload, then applies any declared attribute mutators. Unlike the parent, keys absent from `$fillable` are preserved so the model tolerates the extra keys the NHA API is allowed to add.
jsonSerialize()  : array<string|int, mixed>
Serialises back to the full raw payload (lossless), not just the declared subset, so round-tripping an NHA response never discards fields.

Properties

$has_more

public bool $has_more

Whether older rows exist beyond this page.

$log

public array<string|int, mixed> $log

Log rows for the requested window.

$next_before_id

public int $next_before_id

Cursor for the next (older) page.

$fillable

protected mixed $fillable = ['log', 'has_more', 'next_before_id']
Tags
inheritdoc

Methods

fill()

Stores the full decoded payload, then applies any declared attribute mutators. Unlike the parent, keys absent from `$fillable` are preserved so the model tolerates the extra keys the NHA API is allowed to add.

public fill(array<string|int, mixed> $attributes) : void
Parameters
$attributes : array<string|int, mixed>

The decoded response body.

jsonSerialize()

Serialises back to the full raw payload (lossless), not just the declared subset, so round-tripping an NHA response never discards fields.

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>
On this page

Search results