Creating a new Laravel application
With Homestead set up, you now have a development environment to build Laravel applications that can easily be removed at a later date without disturbing your machine. You must be itching to get started with Laravel, so here we go!
In the next chapter, we will go through building a simple application in Laravel from start to finish. So now, we will prepare this project in Homestead:
- First, check whether Homestead is running by using the following command:
> $ homestead status
- If the status is anything other than running, bring it up with the
homestead reload
command. We now need to add our site. It will be a browsable database of cat profiles, so let's call it "Furbook" and give it the fictional domain name offurbook.com
. - We can set this up in Homestead by editing the configuration file and adding the following mappings:
sites: - map: dev.furbook.com to: /home/vagrant/Code/furbook.com/public databases: - furbook
- Run
$ homestead...