Search code examples
phplaravelvagranthomesteadserve

Laravel Homestead: 'php artisan serve' not working


When I run the command php artisan serve in the directory /home/vagrant/Code/Laravel/ it appears to work. (/Laravel is my project directory)
Screenshot of Terminal

But when I open up localhost:8000 in the browser, I get this: Error Page Image

Thanks for your help in advance.


Solution

  • I reinstalled vagrant, virtualbox, and homestead, and then ran vagrant up in ~/Homestead instead of ~/Code. This worked.

    Thanks for your help anyway.