$user->username()
Returns the username which is the given name or the email as a fallback
$user->username(): string|null
Return types
stringornull
Parent class
Examples
<?= $kirby->user('bastian@example.com')->username() ?>
Returns the username which is the given name or the email as a fallback
$user->username(): string|null
stringornull
<?= $kirby->user('bastian@example.com')->username() ?>