You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It works fine on my local machine but when I push to Laravel Forge / Digital Ocean I get the following error message.
In Container.php line 1017:
Target [Spatie\Backup\Tasks\Cleanup\CleanupStrategy] is not instantiable wh
ile building [Spatie\Backup\Commands\CleanupCommand].
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
I have tried all other solutions I could find to this problem and still no luck.
Solution Attempt 1:
I found that ensuring the package is removed: composer remove spatie/laravel-backup
clear the cache and config php artisan cache:clear php artisan config:clear
then installing composer require spatie/laravel-backup
then recache everything php artisan optimize
Solution Attempt 2:
Remove the config.php file located in bootstrap/cache
Any other solutions out there?
Thanks for the help!
This discussion was converted from issue #1255 on March 10, 2021 19:15.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It works fine on my local machine but when I push to Laravel Forge / Digital Ocean I get the following error message.
I have tried all other solutions I could find to this problem and still no luck.
Solution Attempt 1:
I found that ensuring the package is removed:
composer remove spatie/laravel-backup
clear the cache and config
php artisan cache:clear
php artisan config:clear
then installing
composer require spatie/laravel-backup
then recache everything
php artisan optimize
Solution Attempt 2:
Remove the
config.php
file located inbootstrap/cache
Any other solutions out there?
Thanks for the help!
Beta Was this translation helpful? Give feedback.
All reactions