Add helper method to retrieve the last item from an array (the opposite to array_first() in a sense).

Signed-off-by: Ben Corlett <bencorlett@me.com>
Capturing the last route instead of the first route. This allows overriding of routes to occur.

Signed-off-by: Ben Corlett <bencorlett@me.com>
Update Str.php

Added rtrim() to remove whitespace between the truncated string and the $end string which is appended.
array_first functionality in Collection
test
changes and unit test
replaced unnecessary mockery::any()
Merge pull request #2858 from anlutro-pull-requests/collection-first

array_first functionality in Collection
Update change log.
Merge branch 'refs/heads/master' into bugfix/routes-hierarchy
Merge pull request #2850 from bencorlett/bugfix/routes-hierarchy

Reintroducing Lost Routes Overriding (#2848)
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()