Last active
August 29, 2015 13:59
-
-
Save enoonan/10744298 to your computer and use it in GitHub Desktop.
Laravel Env Detection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// ignore this file in vcs | |
return 'local'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$env = $app->detectEnvironment(function() { | |
$env = include "environment.php"; | |
return is_string($env) ? $env : 'production'; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment