In Laravel 4
, we have a configuration file in app/config/database.php
. And in the app/config/local/database.php
folder you have another file.
Laravel 4
has a mechanism to be able to detect in which environment we are (it seems to me that it is through the person's computer name), so we can determine if it will use database.php
in production and local/database.php
during development.
With setting Laravel 4
to detect the environment according to the host
I'm using?
I have a virtual host called laravel
on my machine and would like it when automatically using Laravel
on that host to automatically be determined as a development environment.
Is there a way to do this in Laravel 4
?