Fixed
- Detaching from large groups exceeding 2000+ members
- Detaching all from a group now properly excludes primary groups
Added
- Ability to create local model query scopes by defining a method prefixed with
scope
, i.e.scopeExhangeUsers
- a652a85 User::whereHasMailbox()
query scope - Thanks to @grantholle - 1e281c2$relation->contains()
method to determine if a relationship contains a model, distinguished name or common name i.e.$user->groups()->contains('Accounting')
. You may also pass an array of any combination of the above to determine if the relation contains any of the given.
Changed
- The
$relation->exists()
method can now accept a distinguished name and common name, where it previously only accepted aModel
instance. You may now also pass an array of any combination of the above to determine if the relation contains all of the given.