class DevTools

Constants

RENDER_SOURCE_KEY

Route default key holding the source location where a Route::inertia() route was defined, used as the render source for route-defined renders.

DEFAULT_EXCEPT

The paths excluded from recording when the configuration omits them.

DEFAULT_REDACT_KEYS

The prop and body keys redacted when the configuration omits them.

DEFAULT_REDACT_HEADERS

The headers redacted when the configuration omits them.

Methods

static bool
enabled()

Determine if DevTools recording is enabled.

static RequestRecorder|null
recorder(Request|null $request = null)

The recorder to report the request lifecycle to, or null when nothing should be recorded. Pass the request wherever one is in hand so excluded paths skip the work.

static bool
enabledForRequest(Request|null $request = null)

Whether the given request should be recorded, defaulting to the current one so callers without a request in scope do not have to resolve it themselves.

Details

at line 60
static bool enabled()

Determine if DevTools recording is enabled.

Return Value

bool

at line 75
static RequestRecorder|null recorder(Request|null $request = null)

The recorder to report the request lifecycle to, or null when nothing should be recorded. Pass the request wherever one is in hand so excluded paths skip the work.

Parameters

Request|null $request

Return Value

RequestRecorder|null

at line 84
static bool enabledForRequest(Request|null $request = null)

Whether the given request should be recorded, defaulting to the current one so callers without a request in scope do not have to resolve it themselves.

Parameters

Request|null $request

Return Value

bool