The composer needs a backup / laravel-backup

I keep getting errors as I type 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.

Issue 1 - Request to install backups / laravel -backup ^ 4.16 → execute using spatial data backup / laravel [4.16.0]. - Conclusion: remove the loop / db -dumper 1.5.1 - Conclusion: do not install the loop / db -dumper 1.5.1 - spatial / laravel backup 4.16.0 requires space / db -dumper ^ 2.6 → executable spatial / db - dumper [2.6.0, 2.6.1, 2.7.0]. - Only one of the following can be installed: spiege / db-dumper [2.6.0, 1.5.1]. - Only one of the following can be installed: spiep / db-dumper [2.6.1, 1.5.1]. - Only one of the following can be installed: spiege / db-dumper [2.7.0, 1.5.1]. - Request for installation of a space / db-dump truck (locked on 1.5.1) → we will execute a space / db-dump truck [1.5.1].

Installation error, return. /composer.json to the original content. Nessrines-MacBook-Pro-2: tfw nessrine $ composer needs a backup / laravel -backup

enter image description here
+3


source to share


1 answer


You need to spatie/db-dumper

manually uninstall the obsolete package before installation spatie/laravel-backup

, which requires a newer version of the db dumper package.

You can remove the package spatie/db-dumper

from your file composer.json

and then install. Or run composer remove spatie/db-dumper

and then proceed to install the backup package.

Edit

It is clear from your comment that you already have an older version of the package installed spatie/laravel-backup

.

Edit 2

Since you are clearly unable to update this package, here is the easiest way I can explain it.



Execute composer remove spatie/laravel-backup

Go to config/app.php

and remove the lineSpatie\Backup\BackupServiceProvider::class

Execute composer require spatie/laravel-backup

Follow further instructions for the package, which also includes adding the service provider back to app.php

https://docs.spatie.be/laravel-backup/v4/installation-and-setup

+3


source







All Articles