Laravel 5 Tutorial 1 – Installing Laravel 5 using Composer

The first thing you need to do is to download composer here.

Then you need to run this command on your CLI.

composer create-project laravel/laravel my-laravel5-app dev-develop --prefer-dist

There are a lot of things to note here.

“create-project” command is use to, of course , create a project.

“my-laravel-app” is the name of your laravel application. You can name it whatever you want.

“–prefer-dist” means you are preferring dist if it is available.

After executing the command, the composer will download all its dependencies. It may take several minutes to finish download.

You will see something like this indicating that the download and installation is complete.

l1

Congratulation. You have installed your first laravel application. On the next tutorial, im going to talk about Laravel 5’s new directory