use JsonSerializable
changes and tests
Unify composer wildcard reference.
strtolower -> camel_case
Micro-optimizations
Added blueprintResolver method.
Merge pull request #3228 from anlutro-pull-requests/jsonserialize

[4.2] Implement JsonSerializable
Fix comments.
Merge pull request #3242 from GrahamCampbell/minor-fixes

Micro Optimizations
Merge pull request #3269 from anlutro-pull-requests/eqb-wheresub

Allow Eloquent Builder wheres with closures
Return empty collection if array is empty.
Merge branch '4.1'