7

I can't Install Laravel 6.0, when I run this command:

composer create-project laravel/laravel laravel_6.0

I want to install v6.0 but it comes with v5.8.17.

How can I download the latest version of laravel? My Php version is 7.2.10

miken32
  • 39,644
  • 15
  • 91
  • 133
Shekh Saifuddin
  • 407
  • 2
  • 5
  • 22
  • 1
    Possible duplicate of [How to install a specific version of package using Composer?](https://stackoverflow.com/questions/40914114/how-to-install-a-specific-version-of-package-using-composer) – emix Sep 01 '19 at 17:49

5 Answers5

7

You will need to make sure your server meets the following requirements:

  • PHP >= 7.2.0
  • BCMath PHP Extension
  • Ctype PHP Extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

And than First, download the Laravel installer using Composer:

composer global require laravel/installer

Once installed, the laravel new command will create a fresh Laravel installation in the directory you specify. Alternatively, you may also install Laravel by issuing the Composer create-project command in your terminal:

composer create-project --prefer-dist laravel/laravel blog

Or

composer create-project --prefer-dist laravel/laravel blog "6.0.*"
vinod
  • 306
  • 3
  • 11
1

From today you can install laravel version 6 with this command:

composer create-project --prefer-dist laravel/laravel blog
dparoli
  • 8,252
  • 1
  • 24
  • 33
1

I recently, updated all of my projects to laravel 6.0,

Laravel-6.0-Installation-Ubuntu

I'm using, Ubuntu 19.04 by following command it works for my system

composer create-project --prefer-dist laravel/laravel your-project-name

Here are some few ways to install laravel by specifying version

composer create-project laravel/laravel=6.0 your-project-name --prefer-dist

composer create-project --prefer-dist laravel/laravel:6.0 your-project-name

composer create-project --prefer-dist laravel/laravel your-project-name "6.*"
Vipertecpro
  • 2,675
  • 2
  • 23
  • 37
0

It's not loaded into Packagist as an official version yet. Therefore, you need to use the "dev-develop" version which contains the latest unstable commit from GitHub:

$ composer create-project laravel/laravel laravel_6.0 dev-develop
ub3rst4r
  • 2,346
  • 24
  • 33
-1

re setup the composer. Show php 7 version when installing.