Skip to content

Instantly share code, notes, and snippets.

@chentsulin
Last active August 29, 2015 14:11
Show Gist options
  • Save chentsulin/288f6d2e01cba1e9b122 to your computer and use it in GitHub Desktop.
Save chentsulin/288f6d2e01cba1e9b122 to your computer and use it in GitHub Desktop.
Specify Laravel Config
// app/config/myenv/app.php
return array(
'debug' => true,
);
// bootstrap/start.php
$env = $app->detectEnvironment(array(
'local' => array('homestead'),
'myenv' => array('myhostname'),
));
// 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