As of now, if I use this command
laravel new blog
It will create a laravel project with the latest version like 5.2, but what if I want to install a specific version, ie. version 5.1?
UPDATE:: I am looking for laravel installer command, is there is any option/parameter for specific version installation?
To install the old version of Laravel, the easiest way is to use the composer create-project command. Using this command we only have to specify the project name and Laravel version that we want it to be installed and there you go it's ready.
You can also specify the version with the package name using = or : as separator. To install unstable packages, either specify the version you want, or use the --stability=dev (where dev can be one of RC, beta, alpha or dev). This works with the * notation. I tried laravel/laravel=5.8.
Using composer you can specify the version you want easily by running
composer create-project laravel/laravel="5.1.*" myProject
Using the 5.1.* will ensure that you get all the latest patches in the 5.1 branch.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With