public function validate($context = 'payload')
    {
        $args = func_get_args();
        array_shift($args);

        $this->each(function ($claim) use ($context, $args) {
            call_user_func_array(
                [$claim, 'validate'.Str::ucfirst($context)],
                $args
            );
        });

        return $this;
    }
public function validate($context = 'payload')
    {
        $args = func_get_args();
        array_shift($args);

        $this->each(function ($claim) use ($context, $args) {
            call_user_func_array(
                [$claim, 'validate'.Str::ucfirst($context)],
                $args
            );
        });

        return $this;
    }
public function validate ( $ context = 'payload' ) { $ args = func_get_args ( ) ; array_shift ( $ args ) ; $ this -> each ( function ( $ claim ) use ( $ context , $ args ) { call_user_func_array ( [ $ claim , 'validate' . Str :: ucfirst ( $ context ) ] , $ args ) ; } ) ; return $ this ; }
Validate each claim under a given context.

@param  string  $context

@return $this
Validate each claim under a given context .