In This video i will talk about How to install laravel. And How to setup host on your local computer, so that you can access it with a url like [ http://laravel.tutorial ]. To install Laravel You need composer and the following commands need to be run on terminal.


Command to install laravel:

composer create-project --prefer-dist laravel/laravel blog

Create Host in Local Computer

1. Go to F:\xampp\apache\conf\extra
Add Below mention Lines and replace { and } with smaller and greater sign as i am not able to type these on description.

{VirtualHost laravel.tutorial:80}
DocumentRoot "F:\xampp\htdocs\youtube\laravel\public"
ServerName laravel.tutorial
{Directory "F:\xampp\htdocs\youtube\laravel\public"}
{/Directory}
{/VirtualHost}


2. Go to C:\Windows\System32\drivers\etc\
open Hosts file in text editor
add 127.0.0.1 laravel.tutorial


3. Restart Apache and access it with http://laravel.tutorial