I installed fresh Laravel 5 copy.
My detectEnvironment function is defined this way:
$app->detectEnvironment(function() { return \'local\';
There's a package that brings the cascading config system back to Laravel 5.
Disclaimer: I am the author.