Skip to content

Commit 6c7f087

Browse files
authored
Add support Laravel 9, (#8)
remove League\Flysystem\Cached\CachedAdapter because it is no longer supports by Laravel 9
1 parent 8d8bfdd commit 6c7f087

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
"ext-exif": "*",
3636
"ext-fileinfo": "*",
3737
"intervention/image": "2.*",
38-
"illuminate/config": "^5.5|^6|^7|^8",
39-
"illuminate/filesystem": "^5.5|^6|^7|^8",
40-
"illuminate/support": "^5.5|^6|^7|^8",
41-
"illuminate/http": "^5.5|^6|^7|^8",
42-
"illuminate/container": "^5.5|^6|^7|^8",
38+
"illuminate/config": "^5.5|^6|^7|^8|^9",
39+
"illuminate/filesystem": "^5.5|^6|^7|^8|^9",
40+
"illuminate/support": "^5.5|^6|^7|^8|^9",
41+
"illuminate/http": "^5.5|^6|^7|^8|^9",
42+
"illuminate/container": "^5.5|^6|^7|^8|^9",
4343
"tinify/tinify": "^1.5"
4444
},
4545
"require-dev": {

src/LfmStorageRepository.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Mafftor\LaravelFileManager;
44

55
use Illuminate\Support\Facades\Storage;
6-
use League\Flysystem\Cached\CachedAdapter;
76

87
class LfmStorageRepository
98
{
@@ -26,13 +25,7 @@ public function __call($function_name, $arguments)
2625

2726
public function rootPath()
2827
{
29-
$adapter = $this->disk->getDriver()->getAdapter();
30-
31-
if ($adapter instanceof CachedAdapter) {
32-
$adapter = $adapter->getAdapter();
33-
}
34-
35-
return $adapter->getPathPrefix();
28+
return $this->disk->path('');
3629
}
3730

3831
public function move($new_lfm_path)

0 commit comments

Comments
 (0)