Level 75
A solution in here: https://github.com/spatie/laravel-backup/issues/957
I was trying to install this library: https://github.com/spatie/laravel-backup but it's giving me an error. My Laravel version is 7.10.2. Here is the command and the output:
> composer require spatie/laravel-backup
Using version ^6.9 for spatie/laravel-backup
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 3 installs, 0 updates, 0 removals
- Installing spatie/temporary-directory (1.2.2): Loading from cache
- Installing spatie/db-dumper (2.16.0): Loading from cache
- Installing spatie/laravel-backup (6.9.0): Loading from cache
spatie/laravel-backup suggests installing laravel/slack-notification-channel (Required for sending notifications via Slack)
Writing lock file
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Illuminate\Contracts\Container\BindingResolutionException
Target [Spatie\Backup\Tasks\Cleanup\CleanupStrategy] is not instantiable while building [Spatie\Backup\Commands\CleanupCommand].
at D:\Desenvolvimento\Projetos\Websites\takecareman\vendor\laravel\framework\src\Illuminate\Container\Container.php:1011
1007| } else {
1008| $message = "Target [$concrete] is not instantiable.";
1009| }
1010|
> 1011| throw new BindingResolutionException($message);
1012| }
1013|
1014| /**
1015| * Throw an exception for an unresolvable primitive.
1 D:\Desenvolvimento\Projetos\Websites\takecareman\vendor\laravel\framework\src\Illuminate\Container\Container.php:814
Illuminate\Container\Container::notInstantiable("Spatie\Backup\Tasks\Cleanup\CleanupStrategy")
2 D:\Desenvolvimento\Projetos\Websites\takecareman\vendor\laravel\framework\src\Illuminate\Container\Container.php:261
Illuminate\Container\Container::build("Spatie\Backup\Tasks\Cleanup\CleanupStrategy")
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Installation failed, reverting ./composer.json to its original content.
I guess this package does not support Laravel 7, so are there any other backup libraries that work on Laravel 7? And does this library work on Laravel 7 and I've made a mistake during the installation?
A solution in here: https://github.com/spatie/laravel-backup/issues/957
Please or to participate in this conversation.