This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Maz
Maz

Hi.

I'm working on a plugin which require Carbon 2 to be more comfortable (if not I have to reinvent some functions which didn't exist in Carbon 1).

I'm actually running in local with with Valet on Linux and PHP 7.4 but my composer.json is configured with the minimal requirement: PHP 7.0.8:

{
    "require": {
        "php": ">=7.0.8"
    },
    "config": {
        "preferred-install": "dist",
        "platform": {
            "php": "7.0.8"
        }
    }
}

When I try to update carbon it says to me:

This package requires php >=7.2 but your PHP version (7.0.8; Package overridden via config.platform (actual: 7.4.1)) does not satisfy that requirement.

How to properly update the OctoberCMS environment? I tried to directly modify the packages.json, but it doesn't work.

Thanks.

JeffGoldblum
JeffGoldblum

You can just remove the platform requirement section to do your development. We're currently in the middle of upgrading to Laravel 6.x so once that's done you should just be able to use the upgraded composer.json

Maz
Maz

Yeah I did (remove the platform requirment), but can't composer update anymore after that, I thought it was an OctoberCMS problem. But after some hours of search: it's due to a webpack issue.

I'll wait the new OctoberCMS to share my plugin which needs Carbon2 to be simplified (for now I'm using some hacky functions to re-invent Carbon2's new wheels ^^).

JeffGoldblum
JeffGoldblum

Feel free to test out the Laravel 6 upgrade in your projects by following these instructions and report any issues you find: https://github.com/octoberrain/meta/blob/master/l6-upgrade-notes.md

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.