File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,11 @@ class RepositoryServiceProvider extends ServiceProvider
2626 */
2727 public function register ()
2828 {
29+ // check ensure main folder services
30+ $ this ->app ->make (Filesystem::class)->ensureDirectoryExists (config ("easy-repository.service_directory " ));
31+ // check ensure main folder repository
32+ $ this ->app ->make (Filesystem::class)->ensureDirectoryExists (config ("easy-repository.repository_directory " ));
33+
2934 $ this ->files = $ this ->app ->make (Filesystem::class);
3035 if ($ this ->isConfigPublished ()) {
3136 $ this ->bindAllRepositories ();
Original file line number Diff line number Diff line change 44namespace LaravelEasyRepository \helpers ;
55
66
7- use function League \ Flysystem \ Local \ ensureDirectoryExists ;
7+ use Illuminate \ Filesystem \ Filesystem ;
88
99class Search
1010{
@@ -15,7 +15,7 @@ class Search
1515 */
1616 static function file ($ folder , $ pattern_array ) {
1717 // check directory exsist
18- ensureDirectoryExists ($ folder );
18+ app ()-> make (Filesystem::class)-> ensureDirectoryExists ($ folder );
1919
2020 $ return = array ();
2121 $ iti = new \RecursiveDirectoryIterator ($ folder );
Original file line number Diff line number Diff line change 77use LaravelEasyRepository \Tests \TestCase ;
88class FolderTest extends TestCase
99{
10-
1110 /**
1211 * @group folder_test
1312 */
You can’t perform that action at this time.
0 commit comments