Dropbox backup type error - Illuminate Filesystem expected, League Flysystem given #1546
-
laravel/framework: 9.19.0 Hi, I recently upgraded to the versions above from Laravel 8, laravel-backup 6.14 and flysystem-dropbox 1.2.3. I have dropbox mapped as Laravel disk using Flysystem adapter as per Freek's blog here. But after the upgrade, all calls like Spatie\Backup\BackupDestination\BackupDestination::__construct(): Argument #1 ($disk) must be of type ?Illuminate\Contracts\Filesystem\Filesystem, League\Flysystem\Filesystem given, called in /Users/ziki/Sites/mysite/vendor/spatie/laravel-backup/src/BackupDestination/BackupDestination.php on line 60 I tried removing /vendor dir and reinstalling composer dependencies, it was the same. I also tried downgrading backup and dropbox packages, but the older versions don't really work with Laravel 9. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Looks like you didn't read laravel's 9.x upgrading documentation |
Beta Was this translation helpful? Give feedback.
Looks like you didn't read laravel's 9.x upgrading documentation
https://laravel.com/docs/9.x/upgrade#flysystem-3 Custom Filesystems
That is your problem, just change that part