Instance Method
isAttached(toID:on:)
Check whether a specific model ID is already attached through a sibling relationship.
Parameters
toIDThe ID of the model to check whether it is attached through a pivot.
databaseThe database to perform the check on.