Skip to content
This repository has been 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

Open
didobr opened this issue May 22, 2021 · 0 comments
Open

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

didobr opened this issue May 22, 2021 · 0 comments

Comments

@didobr
Copy link

didobr commented May 22, 2021

  • 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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant