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
Make registerSwiftMailer public
Merge pull request #4056 from JosephSilber/fix-mail-protected

Make registerSwiftMailer public
Add events firing in transaction.

Signed-off-by: Kevin Simard <kesimard@outlook.com>
Fix `count` method return value.
Return number represented as integer instead of string.
Fixes #4067.
Whitespace fix.
IDE's...
Fix indents.
Merge pull request #4070 from Feld0/4.1

Fix #4067: Acceptance validation not boolean true
Add space between type-casting operator and return value.
Merge pull request #4069 from Andreyco/4.1

Fix `count` method return value. #4.1
Make exception handler comply with HttpKernelInterface

- Don't send response in handleException to comply with HttpKernelInterface
- Added handleUncaughtException which also sends the response
Update Mailer.php

added missing class property
Merge pull request #4075 from janschoenherr/patch-1

Update Mailer.php
Merge pull request #4073 from alprs/fix/exhandler-httpkernel

Make exception handler comply with HttpKernelInterface