$user->update()
Updates the user data
Parameters
Name | Type | Default |
---|---|---|
$input | array |null |
null |
$languageCode | string |null |
null |
$validate | bool |
false |
Return type
This method does not modify the existing $user
object but returns a new object with the changes applied. Learn more →
Parent class
Example
This method only updates the content in the user.txt
file. To update the user email or the user name, use the $user->changeEmail()
or $user->changeName()
methods.