2019 Update: If you are a MacOS user I strongly recommend using Laravel Valet, for other systems Docker is highly recommended.
This post will quickly guide you in the process of creating a new Laravel Project using Vagrant, Scotchbox & the Laravel installer.
If you are using windows, you can run the same commands by installing Git Bash
- Vagrant, VirtualBox & Git
- Undertand basic git commands or know hot to copy/paste.
- Linux or Gitbash.
Create a new Virtual Enviroment
Lets start with a new Laravel Project, In this case I will create a new project inside a VirtualBox enviroment using Vagrant and my favorite Box called Scotchbox.
git clone https://github.com/scotch-io/scotch-box
Navitage inside the newly created folder "scotchbox"
Start your Virtual Machine
You can now visit http://192.168.33.10/ and you should see your virtual box running.
Create a new Laravel Project
First, lets open our virtual's machine SSH
Once you do this, you will be excuting commands inside a Virtual Machine, not your local machine
Navigate to public directory
Make sure to update composer, (this will most likely prevent some errors)
composer global update
Create a new laravel Project
laravel new store
This will install Laravel automatically for you, download libraries, set enviroment file, etc
Laravel is up and running!
Navigate to http://192.168.33.10/store/public/ and you should see the default Laravel Page.
That was easy? What's next?
How about creating your first Laravel page with a repository in Github using an awesome IDE like PHPStorm?
Click here to open this tutorial.