Skip to content

Instantly share code, notes, and snippets.

@davidhemphill
Forked from zackkitzmiller/env.php
Last active December 20, 2015 21:58
Show Gist options
  • Save davidhemphill/6201185 to your computer and use it in GitHub Desktop.
Save davidhemphill/6201185 to your computer and use it in GitHub Desktop.
<?php
$env = $app->detectEnvironment(function() {
return getenv('[APPNAME]_ENV') ?: 'development';
});
//
$ STREAKLY_ENV=prod php artisan...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment