class Avatar

Properties

static protected Closure|null $callback

The callback that should be used to get the Telescope user avatar.

Methods

static string|null
url(array $user)

Get an avatar URL for an entry user.

static void
register(Closure $callback)

Register the Telescope user avatar callback.

static string|null
resolve(array $user)

Find the custom avatar for a user.

static void
flushState()

Flush all static state.

Details

at line 20
static string|null url(array $user)

Get an avatar URL for an entry user.

Parameters

array $user

Return Value

string|null

at line 39
static void register(Closure $callback)

Register the Telescope user avatar callback.

Boot-only. The callback persists in a static property for the worker lifetime and runs on every Telescope avatar lookup.

Parameters

Closure $callback

Return Value

void

at line 47
static protected string|null resolve(array $user)

Find the custom avatar for a user.

Parameters

array $user

Return Value

string|null

at line 59
static void flushState()

Flush all static state.

Return Value

void