Skip to content

Instantly share code, notes, and snippets.

@coreymcmahon
Created May 22, 2014 06:20
Show Gist options
  • Select an option

  • Save coreymcmahon/a741832bf814a9392380 to your computer and use it in GitHub Desktop.

Select an option

Save coreymcmahon/a741832bf814a9392380 to your computer and use it in GitHub Desktop.
Documented approach for defining environments in Laravel - http://www.slashnode.com
<?php
// ... etc
// in bootstrap/start.php
$env = $app->detectEnvironment(array(
'local' => array('localhost'),
'staging' => array('staging.domain.org'),
'production' => array('domain.org'),
));
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment