Since Laravel 5 is already the final release, you must run to install it
composer create-project laravel/laravel test-laravel-5-project
in the console. test-laravel-5-project is the name of your project, which you can call in any case, for example, myblog, myapp, etc. Laravel files will be placed in this directory
You can also use an alternative method using
composer global require "laravel/installer=~1.1"
and then run
laravel new test-laravel-5-project
For details, you should look at the official Laravel installation notes.
The following answer is retained only for historical reasons, and it was valid when Laravel 5 was still under development. Now you should use only the method mentioned above
I just checked this, and there are two ways to install Laravel 5:
One-step method
You just run:
composer create-project laravel/laravel test-laravel-5-project dev-develop
and the composer will create the whole directory structure. The test-laravel-5-project command above indicates your project name - you can, of course, name it whatever you want (the composer will create a directory with that name and put all the Laravel5 files in this directory)
Multistage method
Using both methods when launching the URL of your project in a browser (for example, http://localhost/projects/test-laravel-5-project/public depending on the settings of your web server), you will get the standard Laravel You have arrived. website You have arrived.
Both methods should work well. Give one try, depending on what suits you best.
Marcin NabiaΕek Sep 20 '14 at 13:26 2014-09-20 13:26
source share