Difference between laravel new project and composer create-project commands

5

What is the difference between the laravel new nome-projeto and composer create-project laravel/laravel nome-projeto --prefer-dist ?

In both cases the result is the same but in the case of the composer path, the project folder takes up a lot more space.

What is the best way to work for version 5.1 of the framework?

    
asked by anonymous 13.04.2016 / 13:36

1 answer

3

The difference between them is very subtle. Both will use the composer to install the dependencies of your project.

The difference is that% composer% will download from project releases and --prefer-dist from a domain domain ( link ).

I find laravel new more flexible because it is possible to install a specific version, in Laravel Installer this is not possible.

About the size of the project, both look exactly the same:

    
13.04.2016 / 14:02