original_string: public function update($user, User $userToManage)
      {
          if ($userToManage->id == $user->id || $userToManage->superAdmin()) {
              return false;
          }
  
          $user = User::findOrFail($user->id);
  
          return $user->hasPermission('laralum::users.update') || $user->superAdmin();
      }
code: public function update($user, User $userToManage)
      {
          if ($userToManage->id == $user->id || $userToManage->superAdmin()) {
              return false;
          }
  
          $user = User::findOrFail($user->id);
  
          return $user->hasPermission('laralum::users.update') || $user->superAdmin();
      }
code_tokens: public function update ( $ user , User $ userToManage ) { if ( $ userToManage -> id == $ user -> id || $ userToManage -> superAdmin ( ) ) { return false ; } $ user = User :: findOrFail ( $ user -> id ) ; return $ user -> hasPermission ( 'laralum::users.update' ) || $ user -> superAdmin ( ) ; }
docstring: Determine if the current user can update users.
  
  @param mixed $user
  
  @return bool
docstring_tokens: Determine if the current user can update users .