protected function getNameId($user, $authnRequest)
    {
        $nameIdAttribute = config('saml.sp.'.base64_encode($authnRequest->getAssertionConsumerServiceURL()).'.nameID', 'email');
        return $user->{$nameIdAttribute};
    }
protected function getNameId($user, $authnRequest)
    {
        $nameIdAttribute = config('saml.sp.'.base64_encode($authnRequest->getAssertionConsumerServiceURL()).'.nameID', 'email');
        return $user->{$nameIdAttribute};
    }
protected function getNameId ( $ user , $ authnRequest ) { $ nameIdAttribute = config ( 'saml.sp.' . base64_encode ( $ authnRequest -> getAssertionConsumerServiceURL ( ) ) . '.nameID' , 'email' ) ; return $ user -> { $ nameIdAttribute } ; }
Get the NameID attribute to be used.
@param  User $user
@param  \Illuminate\Http\Request  $request
@return string
Get the NameID attribute to be used .