class Features

Methods

static bool
enabled(string $feature)

Determine if the given feature is enabled.

static bool
optionEnabled(string $feature, string $option)

Determine if the feature is enabled and has a given option enabled.

static mixed
option(string $feature, string $option, mixed $default = null)

Get an option for the given feature.

static array
options(string $feature)

Get all options for the given feature.

static bool
hasProfileFeatures()

Determine if the application is using any features that require "profile" management.

static bool
canUpdateProfileInformation()

Determine if the application can update a user's profile information.

static bool
hasSecurityFeatures()

Determine if the application is using any security profile features.

static bool
canUpdatePasswords()

Determine if the application can update user passwords.

static bool
canManageTwoFactorAuthentication()

Determine if the application can manage two factor authentication.

static bool
canManagePasskeys()

Determine if the application can manage passkeys.

static string
registration()

Enable the registration feature.

static string
resetPasswords()

Enable the password reset feature.

static string
emailVerification()

Enable the email verification feature.

static string
updateProfileInformation()

Enable the update profile information feature.

static string
updatePasswords()

Enable the update password feature.

static string
twoFactorAuthentication(array $options = [])

Enable the two factor authentication feature.

static string
passkeys(array $options = [])

Enable the passkeys feature.

Details

at line 16
static bool enabled(string $feature)

Determine if the given feature is enabled.

Parameters

string $feature

Return Value

bool

at line 24
static bool optionEnabled(string $feature, string $option)

Determine if the feature is enabled and has a given option enabled.

Parameters

string $feature
string $option

Return Value

bool

at line 33
static mixed option(string $feature, string $option, mixed $default = null)

Get an option for the given feature.

Parameters

string $feature
string $option
mixed $default

Return Value

mixed

at line 43
static array options(string $feature)

Get all options for the given feature.

Parameters

string $feature

Return Value

array

at line 51
static bool hasProfileFeatures()

Determine if the application is using any features that require "profile" management.

Return Value

bool

at line 62
static bool canUpdateProfileInformation()

Determine if the application can update a user's profile information.

Return Value

bool

at line 70
static bool hasSecurityFeatures()

Determine if the application is using any security profile features.

Return Value

bool

at line 80
static bool canUpdatePasswords()

Determine if the application can update user passwords.

Return Value

bool

at line 88
static bool canManageTwoFactorAuthentication()

Determine if the application can manage two factor authentication.

Return Value

bool

at line 96
static bool canManagePasskeys()

Determine if the application can manage passkeys.

Return Value

bool

at line 104
static string registration()

Enable the registration feature.

Return Value

string

at line 112
static string resetPasswords()

Enable the password reset feature.

Return Value

string

at line 120
static string emailVerification()

Enable the email verification feature.

Return Value

string

at line 128
static string updateProfileInformation()

Enable the update profile information feature.

Return Value

string

at line 136
static string updatePasswords()

Enable the update password feature.

Return Value

string

at line 149
static string twoFactorAuthentication(array $options = [])

Enable the two factor authentication feature.

Non-empty options mutate the process-global configuration repository and affect every subsequent request in the worker.

Parameters

array $options

Return Value

string

at line 165
static string passkeys(array $options = [])

Enable the passkeys feature.

Non-empty options mutate the process-global configuration repository and affect every subsequent request in the worker.

Parameters

array $options

Return Value

string