Skip to content

Commit b51610e

Browse files
committed
fixing ensureDirectory
1 parent dd72bfd commit b51610e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/helpers/Search.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66

77
use function League\Flysystem\Local\ensureDirectoryExists;
8+
use Illuminate\Filesystem\Filesystem;
89

910
class Search
1011
{
@@ -15,7 +16,7 @@ class Search
1516
*/
1617
static function file($folder, $pattern_array) {
1718
// check directory exsist
18-
ensureDirectoryExists($folder);
19+
app()->make(Filesystem::class)->ensureDirectoryExists($folder);
1920

2021
$return = array();
2122
$iti = new \RecursiveDirectoryIterator($folder);

0 commit comments

Comments
 (0)