How to install laravel set up in your machine


If you want to install laravel in you machine to must remember some thing . Server requirement , php version etc . All of requirement full fill by laravel Homestead . You can use laravel Homestead as your local laravel development environment .

Although in this tutorials we learn about how to install laravel using composer . if you are not use Homestead for local laravel development . then you use Composer for manage all laravel dependency .

First you open getcomposer.org and click the download button . You can download composer as per you convenience .

After install Composer . Second step open you terminal and download the Laravel installer using Composer using below command .

composer global require laravel/installer

When finish this process again you run another command in you terminal

laravel new your_project_directory_name

blog is your project directory name .

You have alternative option for install laravel in you machine.
composer create-project --prefer-dist laravel/laravel your_project_directory_name "5.8.*"

After Install laravel . Open your terminal and run below this command

  php artisan serve