$user->exists()
Checks if the user exists
-
return (boolean)
Example
<?php if($site->user('bastian')->exists()) {
echo $site->user('bastian')->role();
}
?>
Checks if the user exists
<?php if($site->user('bastian')->exists()) {
echo $site->user('bastian')->role();
}
?>