Update Str.php

Added rtrim() to remove whitespace between the truncated string and the $end string which is appended.
changes and unit test
replaced unnecessary mockery::any()
Revert breaking change.
Merge pull request #2857 from BlueHayes/master

Remove whitespace at the end of truncated portion in Str::limit()
Added sort flags
Key route collection
Corrected docblock formatting, and renamed $sort_flags to $options
Fix routing of domains.
Fixed tinyint

While typeBoolean should be a "tinyint(1)", typeTinyInteger itself should be a plain "tinyint" with default (3) value (-128 +127).
Move exception responses to flow through the Stack.
Merge pull request #2867 from JamShady/pull-request/collection-sortBy-flags

Added sort flag to Collection::sortBy()
Merge branch '4.0'
Fixed tinyint

Updated test.
Return user from loginUsingID. Fixes #2871.
Just return 1 from Mail::send when pretend is true. Fixes #2859.
Fix status code.
Check if we're running unit tests.
Failing test for hasOldInput with no key
hasOldInput with no key correctly returns false