DirectoryTree / LdapRecord-Laravel

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

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

Closed gaurav1992 closed 1 year ago

gaurav1992 commented 1 year 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 1 year 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 1 year ago

Thank you @stevebauman you made my day 👍

stevebauman commented 1 year ago

Happy to help @gaurav1992!