So, for my application I see 4 types of environments it can run under:
- Local on my machine
- Local on my VM where I am using Homestead
Each environment differs in the database connectivity (type of DB, connectivity to the DB credentials, etc).
In my bootstrap/start.php I have set up this:
$env = $app->detectEnvironment(array( 'local' => array('localhost'), 'localStaging' => array('mylocalStage.dev'), 'staging' => array('myapp-stage.com'), 'production' => array('myapp.com'), ));
How do I enforce those settings? where do I set up that when I'm on 'local' I will use some local settings? Currently when I use
php artisan env
on my root application folder I get:
Current application environment: production
why isn't it picking up I'm 'local'?