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
Validator::validateMimes returns false if the uploaded file isn't valid

If the upload is partial, the UploadedFile instance might be invalid and the mimetype shouldn't be validated.
Fix fatal error on TestCase::assertViewHas when response is a Json- or RedirectResponse
Add events firing in transaction.

Signed-off-by: Kevin Simard <kesimard@outlook.com>
Model hydrate and hydrateRaw methods
Merge branch 'model-hydrate' of https://github.com/JosephSilber/framework into JosephSilber-model-hydrate
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.
Updating change log.
Guard - Add method 'id' for retrieve the current user id
Merge pull request #4101 from ghislainf/patch-2

[Proposal][Auth] Retrieve the current user id stored in session
Clean up some code.
Updated change log.
Lower case the array keys when doing aggregate.
Fix nested relations with subset names.
Remove unnecessary check.