Avatar
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 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.
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.
at line 47
static protected string|null
resolve(array $user)
Find the custom avatar for a user.
at line 59
static void
flushState()
Flush all static state.