Last active
August 29, 2015 14:11
-
-
Save chentsulin/288f6d2e01cba1e9b122 to your computer and use it in GitHub Desktop.
Specify Laravel Config
This file contains 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
// app/config/myenv/app.php | |
return array( | |
'debug' => true, | |
); |
This file contains 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
// bootstrap/start.php | |
$env = $app->detectEnvironment(array( | |
'local' => array('homestead'), | |
'myenv' => array('myhostname'), | |
)); |
This file contains 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
// Show environment | |
$ php artisan env | |
or | |
$ php artisan tinker | |
> echo app()->env; | |
// Show hostname | |
> hostname |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment