当我输入composer require spatie/laravel-backup
Nessrines-MacBook-Pro-2:tfw nessrine$ composer require spatie/laravel-backup
Using version ^4.16 for spatie/laravel-backup ./composer.json has been updated
> php artisan clear-compiled
The compiled services file has been removed.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.Problem 1 - Installation request for spatie/laravel-backup ^4.16 -> satisfiable by spatie/laravel-backup[4.16.0]. - Conclusion: remove spatie/db-dumper 1.5.1 - Conclusion: don't install spatie/db-dumper 1.5.1 - spatie/laravel-backup 4.16.0 requires spatie/db-dumper ^2.6 -> satisfiable by spatie/db-dumper[2.6.0, 2.6.1, 2.7.0]. - Can only install one of: spatie/db-dumper[2.6.0, 1.5.1]. - Can only install one of: spatie/db-dumper[2.6.1, 1.5.1]. - Can only install one of: spatie/db-dumper[2.7.0, 1.5.1]. - Installation request for spatie/db-dumper (locked at 1.5.1) -> satisfiable by spatie/db-dumper[1.5.1].
Installation failed, reverting ./composer.json to its original content. Nessrines-MacBook-Pro-2:tfw nessrine$ composer require spatie/laravel-backup’
答案 0 :(得分:3)
您需要在安装 String filterExpression = "coloumnname.info.genres= :param";
Map valueMap = new HashMap();
valueMap.put(":param", "Drama");
ItemCollection scanResult = table
.scan(new ScanSpec().
withFilterExpression(filterExpression).
withValueMap(valueMap));
之前手动删除过时的软件包spatie/db-dumper
,这需要更新版本的db dumper软件包。
您可以从spatie/laravel-backup
文件中删除spatie/db-dumper
包,然后再安装。或者运行composer.json
,然后继续安装备份包。
修改强>
从您的评论中可以清楚地看到,您已经安装了旧版本的软件包composer remove spatie/db-dumper
。
修改2
由于您显然无法更新此软件包,因此这是我可以解释此问题的最简单方法。
运行spatie/laravel-backup
转到composer remove spatie/laravel-backup
并删除第config/app.php
行
运行Spatie\Backup\BackupServiceProvider::class
请按照包的进一步说明进行操作,其中还包括在app.php中添加服务提供商
https://docs.spatie.be/laravel-backup/v4/installation-and-setup