How to set Laravel 4 environments

The environment is based on url matches. You’ll find that configuration in /bootstrap/start.php Now say you are developing locally and use the prefix/postfix local. E.g: my-new-site.local or local.my-new-site That sets the environment, now to use it you’ll need to create a local folder in /app/config/ And so you want to have a different database configuration Read more about How to set Laravel 4 environments[…]