protected function getUserSessionId($user)
    {
        $model = $this->getUserModel();
        
        if ($user instanceof $model) {
            return array_get($this->users, $user->getKey(), false);
        } elseif ($model::find($user) !== null) {
            return array_get($this->users, $user, false);
        }
        
        return false;
    }
protected function getUserSessionId($user)
    {
        $model = $this->getUserModel();
        
        if ($user instanceof $model) {
            return array_get($this->users, $user->getKey(), false);
        } elseif ($model::find($user) !== null) {
            return array_get($this->users, $user, false);
        }
        
        return false;
    }
protected function getUserSessionId ( $ user ) { $ model = $ this -> getUserModel ( ) ; if ( $ user instanceof $ model ) { return array_get ( $ this -> users , $ user -> getKey ( ) , false ) ; } elseif ( $ model :: find ( $ user ) !== null ) { return array_get ( $ this -> users , $ user , false ) ; } return false ; }
Get the Session ID for a connected user.

@param $user
@return mixed
Get the Session ID for a connected user .