Time to create a Laravel project!
First cd into your projects folder (the folder where your Laravel projects will live).
Open your terminal and run the following command:
composer create-project --prefer-dist laravel/laravel project-name
cd into created project folder
Download the homestead package
composer require laravel/homestead --dev
php vendor/bin/homestead make
Start up vagrant box
If "missing private key" error run the following command:
ssh-keygen -t rsa -f ~/.ssh/id_rsa
SSH into vagrant box
You should see something like this:
Open your browser and go to http://192.168.10.10
If "No Application Encryption Key Has Been Specified" error run the following command:
php artisan key:generate
If the previous command throws an ".env file missing" error, copy the .env.example file into a .env file.
To link your ip to homestead.test you need to modify your host file. On Mac and Linux, this file is located at /etc/hosts. On Windows, it is located at C:\Windows\System32\drivers\etc\hosts. The line you add to this file is the following:
Test your project by going to homestead.test instead of the ip!