4 years ago

So confused with Homestead

Posted 4 years ago by MDN

I'm beginning to get really frustrated with Homestead. I have not been able to get it properly working for hours now and the Laravel docs and Laracast videos do not explain certain things which I'm finding difficult to understand.

So my .yaml file has

folders: - map: c:/code to: /home/vagrant/Code

sites: - map: to: /home/vagrant/Code/Laravel/public

How is that Code folder in the VM even created? Where is it? I keep getting This web page is not available ERR_CONNECTION_REFUSED when I visit

/Code/Laravel/public looks like what I get when I do a fresh install of Laravel but am I supposed to run composer create-project laravel/laravel --prefer-dist inside the VM or outside the VM?

Whenever I type homestead I get a massive error like so

Warning: require (C:\code\Homestead/../../autoload.php): failed to open stream: No such file or director in C:\code\Homestead\homestead on line 10 Call stack 0.0005 249664 1. {main}() C:\code\Homestead\homestead:0

Fatal error: require() Failed opening required 'C:\code\Homestead/../../autoload.php' (include_path='.;C:\php\pear') in C;\code\Homestead\homestead on line 10

Call Stack 0.0005 249664 1. {main}() C:\code\Homestead\homestead:0

I don't even know where to begin with that...

Please sign in or create an account to participate in this conversation.