Remove the Illuminate\Support dependency for Container
Merge pull request #6354 from bramdevries/master

[5.0] Replace last() with end() to remove Illuminate\Support requirement for Illuminate\Container