无法在Laravel 5.8中安装Spatie Activity-log软件包

时间:2020-03-30 17:14:50

标签: laravel laravel-5 composer-php spatie activitylog

我打算在laravel应用程序中安装spatie-activitylog软件包。

composer require spatie/laravel-activitylog

但是我遇到了这个错误。

 Problem 1
        - Conclusion: remove laravel/framework v5.8.37
        - Conclusion: don't install laravel/framework v5.8.37
        - spatie/laravel-activitylog 3.14.0 requires illuminate/support ^6.0|^7.0 -> satisfiable by laravel/framework[7.x-dev], illuminate/support[6.x-dev, 7.x-dev, v6.0.0, v6.0.1, v6.0.2, v6.0
    .3, v6.0.4, v6.1.0, v6.10.0, v6.11.0, v6.12.0, v6.13.0, v6.13.1, v6.14.0, v6.15.0, v6.15.1, v6.16.0, v6.17.0, v6.17.1, v6.18.0, v6.18.1, v6.18.2, v6.18.3, v6.2.0, v6.3.0, v6.4.1, v6.5.0, v6
    .5.1, v6.5.2, v6.6.0, v6.6.1, v6.6.2, v6.7.0, v6.8.0, v7.0.0, v7.0.1, v7.0.2, v7.0.3, v7.0.4, v7.0.5, v7.0.6, v7.0.7, v7.0.8, v7.1.0, v7.1.1, v7.1.2, v7.1.3, v7.2.0, v7.2.1, v7.2.2, v7.3.0]
    .
        - spatie/laravel-activitylog 3.14.1 requires illuminate/support ^6.0|^7.0 -> satisfiable by laravel/framework[7.x-dev], illuminate/support[6.x-dev, 7.x-dev, v6.0.0, v6.0.1, v6.0.2, v6.0
    .3, v6.0.4, v6.1.0, v6.10.0, v6.11.0, v6.12.0, v6.13.0, v6.13.1, v6.14.0, v6.15.0, v6.15.1, v6.16.0, v6.17.0, v6.17.1, v6.18.0, v6.18.1, v6.18.2, v6.18.3, v6.2.0, v6.3.0, v6.4.1, v6.5.0, v6
    .5.1, v6.5.2, v6.6.0, v6.6.1, v6.6.2, v6.7.0, v6.8.0, v7.0.0, v7.0.1, v7.0.2, v7.0.3, v7.0.4, v7.0.5, v7.0.6, v7.0.7, v7.0.8, v7.1.0, v7.1.1, v7.1.2, v7.1.3, v7.2.0, v7.2.1, v7.2.2, v7.3.0]
    .
        - Can only install one of: laravel/framework[7.x-dev, v5.8.37].
        - don't install illuminate/support 6.x-dev|don't install laravel/framework v5.8.37
        - don't install illuminate/support 7.x-dev|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.0.0|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.0.1|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.0.2|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.0.3|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.0.4|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.1.0|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.10.0|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.11.0|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.12.0|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.13.0|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.13.1|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.14.0|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.15.0|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.15.1|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.16.0|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.17.0|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.17.1|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.18.0|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.18.1|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.18.2|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.18.3|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.2.0|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.3.0|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.4.1|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.5.0|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.5.1|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.5.2|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.6.0|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.6.1|don't install laravel/framework v5.8.37
        - don't install illuminate/support v6.6.2|don't install laravel/framework v5.8.37
        - don't install illuminat

e/support v6.7.0|don't install laravel/framework v5.8.37
    - don't install illuminate/support v6.8.0|don't install laravel/framework v5.8.37
    - don't install illuminate/support v7.0.0|don't install laravel/framework v5.8.37
    - don't install illuminate/support v7.0.1|don't install laravel/framework v5.8.37
    - don't install illuminate/support v7.0.2|don't install laravel/framework v5.8.37
    - don't install illuminate/support v7.0.3|don't install laravel/framework v5.8.37
    - don't install illuminate/support v7.0.4|don't install laravel/framework v5.8.37
    - don't install illuminate/support v7.0.5|don't install laravel/framework v5.8.37
    - don't install illuminate/support v7.0.6|don't install laravel/framework v5.8.37
    - don't install illuminate/support v7.0.7|don't install laravel/framework v5.8.37
    - don't install illuminate/support v7.0.8|don't install laravel/framework v5.8.37
    - don't install illuminate/support v7.1.0|don't install laravel/framework v5.8.37
    - don't install illuminate/support v7.1.1|don't install laravel/framework v5.8.37
    - don't install illuminate/support v7.1.2|don't install laravel/framework v5.8.37
    - don't install illuminate/support v7.1.3|don't install laravel/framework v5.8.37
    - don't install illuminate/support v7.2.0|don't install laravel/framework v5.8.37
    - don't install illuminate/support v7.2.1|don't install laravel/framework v5.8.37
    - don't install illuminate/support v7.2.2|don't install laravel/framework v5.8.37
    - don't install illuminate/support v7.3.0|don't install laravel/framework v5.8.37
    - Installation request for laravel/framework (locked at v5.8.37, required as 5.8.*) -> satisfiable by laravel/framework[v5.8.37].
    - Installation request for spatie/laravel-activitylog ^3.14 -> satisfiable by spatie/laravel-activitylog[3.14.0, 3.14.1].

此软件包不再支持laravel 5.8吗? 我认为Laravel 5.8还不算老。 我应该使用最新版本的Laravel 7.0吗? 是否有任何支持laravel 5.8的版本?

2 个答案:

答案 0 :(得分:2)

独立Spatie的活动日志不再支持Laravel 5.8。

这就是composer.json中指定的内容:

"illuminate/config": "^6.0|^7.0",
"illuminate/database": "^6.0|^7.0",
"illuminate/support": "^6.0|^7.0"

我建议您升级到Laravel的最新版本。添加了许多有用的功能。

答案 1 :(得分:1)

轻松安装在我的 Laravel 5.8.35

composer require spatie/laravel-activitylog "^3.9.1"

您始终可以使用Laravel / PHP版本等在Packagist上检查任何软件包的 requires 部分(兼容性)。