Here is how I solved my question:
At first I do not need the php artisan migrate --env=local , I just need to install my virtual host: SetEnv LARAVEL_ENV development .
Secondly, as William Cahill-Manley says, I need to work on application / paths.php, $ environments. I used it before, but wrong. In my case, I solve with this:
$environments = array( 'development' => array('http://localhost/project*', '*project/*'), 'production' => array('http://project.com', 'http://*.project.com') );
My problem was that my code used to be like this:
$environments = array( 'development' => array('http://localhost/project*', '*project*'), 'production' => array('http://project.com', 'http://*.project.com') );
And since the second element of the development array, the production server will always be in development. That is because the url on development is being http://project/ and on the production being http://project.com/ or http://user.project.com/
See, the project will be forced in all developments to be developed with an asterisk / wildcard.
Lucas serafim
source share