fix count when the key is an attribute written in dot notation
Smarter before/after rules with date_format
refactor - add getRule
fix return docblock
Fixed tests
Merge pull request #3725 from GrahamCampbell/4.1-fixes

[IMPORTANT] FIXES FAILING TESTS
Merge branch '4.1' of https://github.com/marcoscoelho/framework into marcoscoelho-4.1
Minor spacing fixes in database tests
Merge branch '4.1' of github.com:laravel/framework into marcoscoelho-4.1
Fix present count.
Merge pull request #3727 from GrahamCampbell/4.1-cs

Minor spacing fixes in database tests
Merge branch '4.1'
Merge branch 'feature/valid-before-after-format' of https://github.com/anlutro-pull-requests/framework into anlutro-pull-requests-feature/valid-before-after-format
Working on date format and validation.
Added json encoding options to json response
Added method short-cut to request.
Fix section endings.
Fix bug introduced a few versions ago.
Merge branch '4.1'
Don't return underlying query builder