简体   繁体   English

在Laravel 5.3中安装spatie / laravel-activitylog

[英]install spatie/laravel-activitylog in Laravel 5.3

I am trying to install "spatie/laravel-activitylog" in Laravel install using command composer require spatie/laravel-activitylog 我正在尝试使用命令编辑器在Laravel安装中安装“ spatie / laravel-activitylog” composer require spatie/laravel-activitylog

But I am getting the error that says Don't install Laravel 5.3 但是我收到错误消息说不要安装Laravel 5.3

But I don't want to update the Laravel version. 但是我不想更新Laravel版本。

I think If I try to install an older version of "spatie/laravel-activitylog". 我想如果我尝试安装“ spatie / laravel-activitylog”的旧版本。 It won't have any compatibility issues with Laravel 5.3. Laravel 5.3不会有任何兼容性问题。

But I don't know which older version of this package will be best for Laravel 5.3. 但是我不知道该软件包的哪个旧版本最适合Laravel 5.3。

The latest version requires Laravel 5.5 . 最新版本需要Laravel 5.5 That is why you get the error. 这就是为什么您得到错误。 To use spatie/laravel-activitylog you need to upgrade Laravel or download an earlier version. 要使用spatie / laravel-activitylog,您需要升级Laravel或下载早期版本。

If you look at the requirements for version 1 here: https://docs.spatie.be/laravel-activitylog/v1/requirements you find that: 如果您在此处查看版本1的要求: https//docs.spatie.be/laravel-activitylog/v1/要求,您会发现:

The activitylog package requires PHP 7.0+ and Laravel 5.2 or higher. activitylog软件包需要PHP 7.0+和Laravel 5.2或更高版本。

This is sufficient with your need so you can install this version by specifying it like this: 这足以满足您的需要,因此您可以通过指定以下版本来安装此版本:

composer require spatie/laravel-activitylog "^1.0"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM