@php $formatJsonOrText = function (?string $raw): string { if ($raw === null || $raw === '') { return '—'; } $decoded = json_decode($raw, true); if (json_last_error() === JSON_ERROR_NONE && is_array($decoded)) { return json_encode($decoded, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT) ?: $raw; } return $raw; }; $formatQueryParams = function ($params): string { if ($params === null || $params === []) { return '—'; } if (is_array($params)) { return json_encode($params, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT) ?: '—'; } return (string) $params; }; @endphp

API Logs

Requests to the public API, including method, URL, query parameters, body, timing, and client information.

Reset
@forelse ($apiLogs as $apiLog) @empty @endforelse
When Method URL Time (ms) IP User agent Details
{{ \App\Support\CalendarDate::format($apiLog->created_at, 'Y-m-d H:i:s') }} {{ $apiLog->api_method }} {{ $apiLog->api_url }} {{ $apiLog->api_execution_time_ms }} {{ $apiLog->request_ip ?? '—' }} {{ $apiLog->user_agent ?? '—' }}

API log detail

UUID: {{ $apiLog->uuid }}

When: {{ \App\Support\CalendarDate::format($apiLog->created_at, 'Y-m-d H:i:s') }}

Method: {{ $apiLog->api_method }}

Time (ms): {{ $apiLog->api_execution_time_ms }}

URL: {{ $apiLog->api_url }}

IP: {{ $apiLog->request_ip ?? '—' }}

Request URL parameters

{{ $formatQueryParams($apiLog->api_request_url_params) }}

POST / JSON body

{{ $formatJsonOrText($apiLog->api_post_json_request) }}

User agent

{{ $apiLog->user_agent ?? '—' }}

No API logs found.
{{ $apiLogs->links() }}