Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target [Spatie\Backup\Tasks\Cleanup\CleanupStrategy] is not instantiable while building #1058

Closed
JunaidKhan046 opened this issue Apr 17, 2020 · 4 comments

Comments

@JunaidKhan046
Copy link

JunaidKhan046 commented Apr 17, 2020

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 /var/www/homizone/vendor/laravel/framework/src/Illuminate/Container/Container.php:979
975| } else {
976| $message = "Target [$concrete] is not instantiable.";
977| }
978|

979| throw new BindingResolutionException($message);
980| }
981|
982| /**
983| * Throw an exception for an unresolvable primitive.

Exception trace:

1 Illuminate\Container\Container::notInstantiable("Spatie\Backup\Tasks\Cleanup\CleanupStrategy")
/var/www/homizone/vendor/laravel/framework/src/Illuminate/Container/Container.php:813

2 Illuminate\Container\Container::build("Spatie\Backup\Tasks\Cleanup\CleanupStrategy")
/var/www/homizone/vendor/laravel/framework/src/Illuminate/Container/Container.php:262

Please use the argument -v to see more details.
I facing this issue please help me

i am using this composer require spatie/laravel-backup

in
Laravel framework : 6.0
PHP version: 7.2.29-1+ubuntu18.04.1+deb.sury.org+1
Server Nginx : 1.4
OS : Linux Ubuntu 18.04

@j5k
Copy link

j5k commented Apr 17, 2020

Duplicate of #1051

@JunaidKhan046
Copy link
Author

I am trying #1051 but composer show the same error.

@erlangparasu
Copy link

remove the config.php file located in bootstrap/cache/

#957 (comment)

@talha2k
Copy link

talha2k commented Feb 13, 2024

#957 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants