laravel/docs — pull request #91 by eoconnell (2013-01-21 19:42:51+00:00)
Title: Code snippet for detectEnvironment()

It took me a bit of fiddling to figure out what had changed from L3. I'm hoping this will help others.