Skip to content

Commit

Permalink
commiting laravel environment setup
Browse files Browse the repository at this point in the history
  • Loading branch information
kdocki committed May 15, 2014
1 parent 0232887 commit 3c17180
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
12 changes: 10 additions & 2 deletions app/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,13 @@

Route::get('/', function()
{
return View::make('hello');
});
$user = new User;
$cart = new Cart;
$lineitems = array();

$lineitems[] = new Lineitem('item 1337');
$lineitems[] = new Lineitem('item 231');
$lineitems[] = new Lineitem('item 432');

return $cart->checkout($user, $lineitems);
});
6 changes: 3 additions & 3 deletions bootstrap/start.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
|
*/

$env = $app->detectEnvironment(array(
$env = $app->detectEnvironment(function() {

'local' => array('your-machine-name'),
return getenv('LARAVEL_ENV') ?: 'production';

));
});

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit 3c17180

Please sign in to comment.