Install Virtual Box. In this tutoial I'm using VB 5.1.
Once they have been installed we add the homestead box to Vagrant
Choose the option for virtual box and allow it to install fully before moving to the next step.
vagrant box add laravel/homestead
Now clone the Repository from Git that contains homestead. Go to your Home Directory in Terminal. Copy and Run.
$git clone https://github.com/laravel/homestead.git Homestead
In your Home Directory make a directory called Code and go into it.
If you have composer installed then skip this code.
To install Laravel run:
sudo apt install composer
composer create-project --prefer-dist laravel/laravel YourBlog
If you want to run your project using your local PHP you can just run inside your directory
//Error laravel/framework v5.3.10 requires ext-mbstring
sudo apt-get install libapache2-mod-php php
sudo apt-get install php-mbstring
//Install Dom Extension
sudo apt-get install php-xml
$php artisan serve
Else in your Homestead/src/stubs/Homestead.yaml and (hidden)Home/.homestead/Homestead.yaml change the sites section to have.
In your terminal type
- map: homestead.app
- map: local.blog
and add at the bottom(IP Address is from top of the YAML file so change accordignly
sudo nano /etc/hosts
Return to Home and into your Homestead Directory and run:
//If you havent created an SSH Key run and hit enter till its done
Go to local.blog in your browser and you should be able to see your new Laravel Site.