How to install Laravel

To install Laravel we need composer dependency tools.

First you have to install composer(if not installed) https://getcomposer.org/ .To check composre is installed or not ----> open terminal " and execute the command composer.

To install Laravel execute following command in terminal

composer global require laravel/installer.

The above command install all dependency of laravel.It will take some time. After complete the execution of above command you can create laravel project using following command laravel new ex. laravel new myFstProject

Alternatively we can use composer to install laravel project using following command composer create-project --prefer-dist laravel/laravel ex. composer create-project --prefer-dist laravel/laravel myFstProject you can run you project using following command php artisan serve


php artisan --> this command shows the list of all laravel relatated command laravel uses blade templating engine for view Blade is laravel templating engine