Skip to content

Commit

Permalink
Add support Laravel 9, (#8)
Browse files Browse the repository at this point in the history
remove League\Flysystem\Cached\CachedAdapter because it is no longer supports by Laravel 9
  • Loading branch information
mafftor authored May 13, 2022
1 parent 8d8bfdd commit 6c7f087
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
"ext-exif": "*",
"ext-fileinfo": "*",
"intervention/image": "2.*",
"illuminate/config": "^5.5|^6|^7|^8",
"illuminate/filesystem": "^5.5|^6|^7|^8",
"illuminate/support": "^5.5|^6|^7|^8",
"illuminate/http": "^5.5|^6|^7|^8",
"illuminate/container": "^5.5|^6|^7|^8",
"illuminate/config": "^5.5|^6|^7|^8|^9",
"illuminate/filesystem": "^5.5|^6|^7|^8|^9",
"illuminate/support": "^5.5|^6|^7|^8|^9",
"illuminate/http": "^5.5|^6|^7|^8|^9",
"illuminate/container": "^5.5|^6|^7|^8|^9",
"tinify/tinify": "^1.5"
},
"require-dev": {
Expand Down
9 changes: 1 addition & 8 deletions src/LfmStorageRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Mafftor\LaravelFileManager;

use Illuminate\Support\Facades\Storage;
use League\Flysystem\Cached\CachedAdapter;

class LfmStorageRepository
{
Expand All @@ -26,13 +25,7 @@ public function __call($function_name, $arguments)

public function rootPath()
{
$adapter = $this->disk->getDriver()->getAdapter();

if ($adapter instanceof CachedAdapter) {
$adapter = $adapter->getAdapter();
}

return $adapter->getPathPrefix();
return $this->disk->path('');
}

public function move($new_lfm_path)
Expand Down

0 comments on commit 6c7f087

Please sign in to comment.