liamqma/Laravel-Ecommerce — pull request #1 by ThomasBS (2014-09-01 20:20:13+00:00)
Title: Dynamic environment detection

Instead of hardcoding an array, I needed to change the environment detection so I could contribute to the project (if Im allowed to, of course :smile: )

The application was throwing up complaining about missing providers because of the local/app.php, so I deleted it and added Way's generators to the normal app.php file.

Instead of hardcoding local database configurations, I added environment variables, so the user wanting to contribute can just create an ``.env.local.php`` like this:

```php
'localhost',
'DB_DATABASE' => 'database name',
'DB_USERNAME' => 'username',
'DB_PASSWORD' => 'password'
);
```