Changed
Models\ActiveDirectory\User
: #346
$user->isLockedOut()
can now accept only a duration in minutes, without a timezone (i.e.$user->isLockedOut(30)
)
Added
Model
: #346
rename()
now allows a string instead of requiring an RDN (i.e.cn=John Doe
)saveQuietly()
allows you to save a model without firing any events (create/update)
Query\Builder
: #346
each()
method allows you to execute a callback over individual objects in a chunked querychunk()
can now be aborted by returningfalse
in a chunkfirstOr()
- execute a callback if there are no results from a querysole()
- return the first result from a query, but throw an exception if there are multiple objects or no objects foundexists()
- determine if the query contains any resultsdoesntExist()
- determine if the query does not contain any resultsexistsOr()
- execute a callback if the query does not contain any results
DistinguishedName
: #346
isValid
static method toDistinguishedName
(DistinguishedName::isValid()
)isEmpty
method toDistinguishedName
(DistinguishedName::make()->isEmpty()
)