class User

Traits

Properties

$id See the code on Github
$type See the code on Github
$attributes See the code on Github
$relationships See the code on Github
$isAdmin See the code on Github

Methods

bool
login()

No description

from Auth
bool
signup()

No description

from Auth
__construct(string|null $username, Flarum $flarum)

No description

bool
update()

Updates a user. If user id is not set, user will be fetched. Warning! User needs to be found with username or email, so one of those two has to be the old one

bool
delete()

No description

bool
fetch()

No description

array
getAttributes()

No description

array
getRelationships()

No description

Details

bool login()

Return Value

bool

bool signup()

Return Value

bool

__construct(string|null $username, Flarum $flarum)

Parameters

string|null $username
Flarum $flarum

bool update()

Updates a user. If user id is not set, user will be fetched. Warning! User needs to be found with username or email, so one of those two has to be the old one

Return Value

bool

bool delete()

Return Value

bool

bool fetch()

Return Value

bool

array getAttributes()

Return Value

array

array getRelationships()

Return Value

array