$user->is($someone)

Checks if the user is the same as the given $user object

  • return (boolean)

Example

<?php if($site->user()->is($site->user('bastian'))): ?>
Put some message here.
<?php endif ?>

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