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
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.
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'
Return user from loginUsingID. Fixes #2871.
Just return 1 from Mail::send when pretend is true. Fixes #2859.