The Homestead machine name is (by default) homestead
:
config.vm.box = "laravel/homestead"
config.vm.hostname = "homestead"
From the config documentation:
In this example, 'local' is the name of the environment and 'your-machine-name' is the hostname of your server. On Linux and Mac, you may determine your hostname using the hostname terminal command.
Try this instead:
$env = $app->detectEnvironment(array(
'local' => array('homestead'),
));
Thanks very much, I've never used Vagrant before but should have second guessed the name!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community