Support the ongoing development of Laravel.io →
Configuration
Last updated 1 year ago.
0

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'),
));
Last updated 1 year ago.
0

Thanks very much, I've never used Vagrant before but should have second guessed the name!

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.