Skip to content

Instantly share code, notes, and snippets.

@coreymcmahon
Created May 22, 2014 06:31
Show Gist options
  • Save coreymcmahon/3714b3a19e2d3120d936 to your computer and use it in GitHub Desktop.
Save coreymcmahon/3714b3a19e2d3120d936 to your computer and use it in GitHub Desktop.
Setting the environment name in Laravel using an environment variable - http://www.slashnode.com
<?php
// ... etc
// in bootstrap/start.php
$env = $app->detectEnvironment(function ()
{
return getenv('APP_ENV');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment