$user->isCurrent()

Checks if the user is the currently logged in user.

  • return (boolean)

Example

<?php if($site->user('bastian')->isCurrent()): ?>
Bastian is the currently logged in user.
<?php endif ?>

Is something missing or incorrect? Edit this page on Github…