Added support for passing an Eloquent Collection to sync() when inserting on a many-to-many relationship instead of just an array of IDs
Small change to follow Laravel coding style
Use modelKeys to retrieve relation IDs correctly instead of incorrect ->otherKey
Add events firing in transaction.

Signed-off-by: Kevin Simard <kesimard@outlook.com>
Model hydrate and hydrateRaw methods
cleaning up a few things.
fixing tests.
Merge branch '4.1' of https://github.com/kesimard/framework into kesimard-4.1
cleaning up some code.
Lower case the array keys when doing aggregate.
Fix nested relations with subset names.
Remove unnecessary check.
Make Model::hydrate's first argument mandatory
Working on cleaning up some code.