Skip to content

Instantly share code, notes, and snippets.

@dariodiaz
Forked from zackkitzmiller/env.php
Created August 10, 2013 16:31
Show Gist options
  • Save dariodiaz/6201070 to your computer and use it in GitHub Desktop.
Save dariodiaz/6201070 to your computer and use it in GitHub Desktop.
PHP - Laravel: env config
<?php
$env = $app->detectEnvironment(function() {
return getenv('[APPNAME]_ENV') ?: 'development';
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment