original_string: public function fromUser($user, array $customClaims = [])
      {
          $payload = $this->makePayload($user->{$this->identifier}, $customClaims);
  
          return $this->manager->encode($payload)->get();
      }
code: public function fromUser($user, array $customClaims = [])
      {
          $payload = $this->makePayload($user->{$this->identifier}, $customClaims);
  
          return $this->manager->encode($payload)->get();
      }
code_tokens: public function fromUser ( $ user , array $ customClaims = [ ] ) { $ payload = $ this -> makePayload ( $ user -> { $ this -> identifier } , $ customClaims ) ; return $ this -> manager -> encode ( $ payload ) -> get ( ) ; }
docstring: Generate a token using the user identifier as the subject claim.
  
  @param mixed $user
  @param array $customClaims
  
  @return string
docstring_tokens: Generate a token using the user identifier as the subject claim .