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