laravel / framework

The Laravel Framework.
https://laravel.com
MIT License
32.52k stars 11.02k forks source link

Laravel 5.7 Upgrade Issue #25435

Closed vbasky closed 6 years ago

vbasky commented 6 years ago

Description:

Problem 1

Steps To Reproduce:

composer update to a 5.6 Laravel project

Attached is the composer.json


    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": ">=7.0.0",
        "appstract/laravel-opcache": "^1.3",
        "fideloper/proxy": "~4.0",
        "laravel/framework": "5.7.*",
        "laravel/tinker": "~1.0",
        "stripe/stripe-php": "^5.7",
        "tcg/voyager": "^1.1",
        "voyager-themes": "^0.13.0"
    },
    "require-dev": {
        "filp/whoops": "~2.0",
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "~1.0",
        "phpunit/phpunit": "~6.0"
    },
    "autoload": {
        "classmap": [
            "database/seeds",
            "database/factories"
        ],
        "psr-4": {
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "scripts": {
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate"
        ],
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover"
        ]
    },
    "config": {
        "preferred-install": "dist",
        "sort-packages": true,
        "optimize-autoloader": true
    },
    "repositories": {
        "hooks": {
            "type": "composer",
            "url": "https://larapack.io"
        }
    }
}
parasume commented 6 years ago

It hasn't been released yet, that's why the dev version shows up

devcircus commented 6 years ago

And the default minimum-stability for composer.json is "stable", so composer will not allow the installation.

vbasky commented 6 years ago

Does that mean I can't upgrade to 5.7 at the moment?

devcircus commented 6 years ago

You just have to explicitly tell composer to allow the dev version. I think "5.7.*@dev" should work.

devcircus commented 6 years ago

If not, set the minimum stability to "dev" in your composer.json

vbasky commented 6 years ago

Voyager tcg/voyager scoffs at 5.7.0 saying its still not supported when added the dev flag, nonetheless 5.7 was supposed to released at the Laracon US happening now isn't it ?

wilburpowery commented 6 years ago

I think you can expect 5.7 to be released tomorrow. Today is a holiday in the US.

sisve commented 6 years ago

There have previously also been questions and misunderstandings about the Laravel releases' timeline. You can probably expect it to be released at the end of August, at Laracon EU.

Related: https://github.com/laravel/framework/pull/20262

devcircus commented 6 years ago

Going to github.com/laravel/framework/releases should always be able to answer the question "Has X version been released yet."