If you do not have Homestead installed you will need to install it in the root of your project
You will need to make sure you create an '.env' file in your project root as well.
composer require laravel/homestead
You then init your Homestead server
php vendor/bin/homestead make --name=VeracityApp --hostname=myapp
Then setup Vagrant
vagrant up
Configure App
mv .env.example .env
php artisan key:generate
php artisan app:name Veracity
Visit http://myapp.app:8000/ if everything is okay, go ahead and setup the rest of the workflow.
Run npm
npm install
If you haven't already done so, create an alias to ssh
alias vm="ssh [email protected] -p 2222"
If you get a Remote Host Error you will need to add a host key in /Users/yourname/.ssh/known_hosts . You can do so by removing the line in question (eg. known_hosts:10 means line 10) and save the file and try again.
You will then need to connect to the Mysql Server
mysql -u homestead -p
You can list available databases:
create database veracity_sandbox;
exit;