Skip to content

Commit c1ee624

Browse files
committed
fix: fix Laravel 9 support
1 parent 98f57e5 commit c1ee624

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/LfmStorageRepository.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace UniSharp\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)