Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

how to get data from an object query instead of an array #911

@didobr

Description

@didobr
  • Laravel Version: 5.5
  • Adldap2-Laravel Version: 10.3.2
  • PHP Version: 7.1
  • LDAP Type:

Description:

I am creating a phone list via LDAP and I cannot get the data for a query like
object (users-> samaccountname, etc) to use foreach and display the fields I need in the view. Is there a way to do this?

see my query .. that way I get the confusing data in array and when I try to scroll with foreach I can't

   $ou = $this->ldap->search()->ous()->find('Bank');
       
   $users = $this->ldap->search()->users()->select('l','samaccountname', 'telephonenumber', 'department')->in($ou)
                                  ->whereEnabled()
                                  ->whereContains('telephonenumber', 'Ramal')
                                  ->get();

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions