php - Installing specific laravel version with composer create-project
The fastest and simplest way of installing Laravel is via composer command. From the laravel docs (http://laravel.com/docs/quick), it shows that we can install it with this:
composer create-project laravel/laravel your-project-name --prefer-dist
But, when you run the above command, it will grab the latest version of Laravel. How can I control it if I want to install latest version of 4.0.x? Or, 4.1.x when 4.2 is out?
Answer
Solution:
From the
composer help create-project
commandThis command works:
This works with the * notation.
Answer
Solution:
Try via Composer Create-Project
You may also install Laravel by issuing the Composer create-project command in your terminal:
Answer
Solution:
Have a look:
Laravel 4.2 Documentation
Syntax (Via Composer):
Example:
Where 4.2 is your version of laravel.
Note: It will take the latest version of Laravel automatically If you will not provide any version.
Answer
Solution:
And then you probably need to install all of vendor packages, so
Answer
Solution:
If you want to use a stable version of your preferred Laravel version of choice, use:
That will pick out the most recent or best update of version 5.5.* (5.5.28)
Answer
Solution:
To install specific version of laravel try this & simply command on terminal
Answer
Solution:
Installing specific laravel version with composer create-project
Then, if you want install specific version then just edit version values "6." , "5.8."
Run Local Development Server