public function getByClaimName($name, callable $callback = null, $default = null)
    {
        return $this->filter(function (Claim $claim) use ($name) {
            return $claim->getName() === $name;
        })->first($callback, $default);
    }
public function getByClaimName($name, callable $callback = null, $default = null)
    {
        return $this->filter(function (Claim $claim) use ($name) {
            return $claim->getName() === $name;
        })->first($callback, $default);
    }
public function getByClaimName ( $ name , callable $ callback = null , $ default = null ) { return $ this -> filter ( function ( Claim $ claim ) use ( $ name ) { return $ claim -> getName ( ) === $ name ; } ) -> first ( $ callback , $ default ) ; }
Get a Claim instance by it's unique name.

@param  string  $name
@param  callable  $callback
@param  mixed  $default

@return \Tymon\JWTAuth\Claims\Claim
Get a Claim instance by it s unique name .