DirectoryTree / LdapRecord-Laravel

Multi-domain LDAP Authentication & Management for Laravel.
https://ldaprecord.com/docs/laravel/v3
MIT License
492 stars 51 forks source link

[Support] Unable to see OpenLDAP createtimestamp & modifytimestamp #572

Closed gaurav1992 closed 11 months ago

gaurav1992 commented 11 months ago

Environment:

User::all();

And i am getting the result properly which I even attached with this issue, However i am trying to get the default timestamp which is createtimestamp and modifytimestamp which seems to be not showing in attributes.

May be i am not understanding how can i access it or missing something to add in model class to get these two attributes.

Can somebody please help, Your prompt response will be much appreciated.

Regard

response html

stevebauman commented 11 months ago

Hi @gaurav1992,

Can you try and manually select them in the query? I wonder if the attributes are virtual 🤔

Ex:

User::all(['createtimestamp', 'modifytimestamp', '*']);
gaurav1992 commented 11 months ago

Thank you @stevebauman you made my day 👍

stevebauman commented 11 months ago

Happy to help @gaurav1992!