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 21
static string|null url(array $user)

Get an avatar URL for an entry user.

Parameters

array $user

Return Value

string|null

at line 40
static void register(Closure $callback)

Register the Telescope user avatar callback.

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 49
static protected string|null resolve(array $user)

Find the custom avatar for a user.

Parameters

array $user

Return Value

string|null

at line 61
static void flushState()

Flush all static state.

Return Value

void