Here we will provide you the steps to setup laravel in your local machine. Before this , you should install XAMPP/MAMP on your computer.Also Laravel needs Composer program to manage its extensions. If you have not downloaded composer yet, then you van download it from the site of Laravel or via the website getcomposer.org.
Now to install Laravel on the localhost, follow the below steps.
Here i have provided the steps to setup in MAMP. You can use Xampp for windows and follow the steps.
Step 1: open cmd/terminal & type php -v
Step 2: enter the following command
curl -s https://php-osx.liip.ch/install.sh | bash -s 5.6
Step 3:Download & Install Composer
curl -sS http://getcomposer.org/installer | php
Step 4:Download & install Laravel
php composer.phar create-project laravel/laravel –prefer-dist
php composer.phar create-project laravel/laravel folder-name
Step 5: Go to htdocs directory & update composer
php /Applications/MAMP/htdocs/composer.phar update
Step 6: Start MAMP & run the following command
php artisan serve
It will start laravel. Follow that url & run in browser
Now your new Laravel project will be successfully installed and run.
Now you can see in above snap that laravel is installed.