Created
May 22, 2014 06:31
-
-
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
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 | |
// ... 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