Closed stevebauman closed 4 months ago
Closes #707
This PR implements reverse casting that previously did not exist, as discovered by @lukasmu.
This means that attributes on LDAP models can now be set to primitives, such as booleans:
$user = User::findOrFail('...'); $user->msExchHideFromAddressList = true; // ['TRUE'] var_dump($user->getRawAttribute('msExchHideFromAddressList'));
And objects, such as dates:
$user = User::findOrFail('...'); $user->accountExpires = new \DateTime('2020-10-02 02:22:09'); // ['132460789290000000'] var_dump($user->getRawAttribute('accountExpires'));
Closes #707
This PR implements reverse casting that previously did not exist, as discovered by @lukasmu.
This means that attributes on LDAP models can now be set to primitives, such as booleans:
And objects, such as dates: