private static function setLoginSession(array $authConfig, $user)
    {
        $key = static::getFields($authConfig, true);
        $encrypted = encrypt($user->$key);
        session()->set('log_me_in', $encrypted);
    }
private static function setLoginSession(array $authConfig, $user)
    {
        $key = static::getFields($authConfig, true);
        $encrypted = encrypt($user->$key);
        session()->set('log_me_in', $encrypted);
    }
private static function setLoginSession ( array $ authConfig , $ user ) { $ key = static :: getFields ( $ authConfig , true ) ; $ encrypted = encrypt ( $ user -> $ key ) ; session ( ) -> set ( 'log_me_in' , $ encrypted ) ; }
Set login session.

@param array $authConfig
@param $user

@throws \Exception
Set login session .