Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install specific version using laravel installer

Tags:

laravel

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?

like image 894
Dipendra Gurung Avatar asked Feb 02 '16 09:02

Dipendra Gurung


People also ask

How do I install an older version of Laravel?

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.

How do I create a specific version of Laravel project?

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.


1 Answers

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.

like image 90
Tutelage Systems Avatar answered Sep 27 '22 20:09

Tutelage Systems