$user->isAdmin()

Checks if the user is an admin

  • return (boolean)