class User implements ExtenderInterface

Methods

displayNameDriver(string $identifier, string $driver)

<p>Add a display name driver.</p>

permissionGroups(callable|string $callback)

<p>Dynamically process a user's list of groups when calculating permissions.</p>

registerPreference(string $key, callable|null $transformer = null, mixed $default = null)

<p>Register a new user preference.</p>

void
extend(Container $container, Extension $extension = null)

No description

Details

User displayNameDriver(string $identifier, string $driver)

<p>Add a display name driver.</p>

Parameters

string $identifier
string $driver

Return Value

User

User permissionGroups(callable|string $callback)

<p>Dynamically process a user's list of groups when calculating permissions.</p>

<p>This can be used to give a user permissions for groups they aren't actually in, based on context. It will not change the group badges displayed for the user.</p>

Parameters

callable|string $callback

Return Value

User

User registerPreference(string $key, callable|null $transformer = null, mixed $default = null)

<p>Register a new user preference.</p>

Parameters

string $key
callable|null $transformer
mixed $default

Return Value

User

void extend(Container $container, Extension $extension = null)

Parameters

Container $container
Extension $extension

Return Value

void