protected function getClaimsForSubject(JWTSubject $subject)
    {
        return array_merge([
            'sub' => $subject->getJWTIdentifier(),
        ], $this->lockSubject ? ['prv' => $this->hashSubjectModel($subject)] : []);
    }
protected function getClaimsForSubject(JWTSubject $subject)
    {
        return array_merge([
            'sub' => $subject->getJWTIdentifier(),
        ], $this->lockSubject ? ['prv' => $this->hashSubjectModel($subject)] : []);
    }
protected function getClaimsForSubject ( JWTSubject $ subject ) { return array_merge ( [ 'sub' => $ subject -> getJWTIdentifier ( ) , ] , $ this -> lockSubject ? [ 'prv' => $ this -> hashSubjectModel ( $ subject ) ] : [ ] ) ; }
Get the claims associated with a given subject.

@param  \Tymon\JWTAuth\Contracts\JWTSubject  $subject

@return array
Get the claims associated with a given subject .