__set()
__set(string $key, mixed $value)
Magic method for setting custom user fields.
This method does not update custom fields in the user document. It only stores
the value on the User instance.
Parameters
string |
$key |
User meta key. |
mixed |
$value |
User meta value. |