class Flarum

Traits

Properties

$api See the code on Github
$password_token See the code on Github
$root_domain See the code on Github
$url See the code on Github
$verify See the code on Github

Methods

bool
setRememberTokenCookie(string $token)

No description

from Cookies
Cookie
generateCookie(string $name, string $value = null, Carbon $expiry = null)

No description

from Cookies
bool
deleteRememberTokenCookie()

No description

from Cookies
bool
setSessionTokenCookie(string $token)

No description

from Cookies
bool
deleteSessionTokenCookie()

No description

from Cookies
bool
setLogoutCookie()

No description

from Cookies
bool
deleteLogoutCookie()

No description

from Cookies
int
loadAddon(string $addon)

No description

from Addons
unloadAddon(string $addon)

No description

from Addons
setAddonProperties(string $addon, array $attributes)

No description

from Addons
bool
isAddonLoaded(string $addon)

No description

from Addons
int|null
action_hook(string $tag)

No description

from Addons
filter_hook(string $tag, $value)

No description

from Addons
__construct(array $config)

No description

bool
logout()

No description

user(string $username = null)

No description

Collection
getUsersList($filters = null)

No description

isSessionRemembered(bool $remember = null)

No description

void
redirect()

Redirects the user to your Flarum instance

Details

bool setRememberTokenCookie(string $token)

Parameters

string $token

Return Value

bool

Cookie generateCookie(string $name, string $value = null, Carbon $expiry = null)

Parameters

string $name
string $value
Carbon $expiry

Return Value

Cookie

bool deleteRememberTokenCookie()

Return Value

bool

bool setSessionTokenCookie(string $token)

Parameters

string $token

Return Value

bool

bool deleteSessionTokenCookie()

Return Value

bool

bool setLogoutCookie()

Return Value

bool

bool deleteLogoutCookie()

Return Value

bool

int loadAddon(string $addon)

Parameters

string $addon

Return Value

int

Addons unloadAddon(string $addon)

Parameters

string $addon

Return Value

Addons

Addons setAddonProperties(string $addon, array $attributes)

Parameters

string $addon
array $attributes

Return Value

Addons

bool isAddonLoaded(string $addon)

Parameters

string $addon

Return Value

bool

int|null action_hook(string $tag)

Parameters

string $tag

Return Value

int|null

filter_hook(string $tag, $value)

Parameters

string $tag
$value

__construct(array $config)

Parameters

array $config

bool logout()

Return Value

bool

User user(string $username = null)

Parameters

string $username

Return Value

User

Collection getUsersList($filters = null)

Parameters

$filters

Return Value

Collection

isSessionRemembered(bool $remember = null)

Parameters

bool $remember

void redirect()

Redirects the user to your Flarum instance

Return Value

void