Skip to content

Commit adb16e8

Browse files
committed
Merge branch 'development'
2 parents 0081191 + adbf3d8 commit adb16e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/RepositoryServiceProvider.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ private function getRepositoryPath()
125125
$dirs = File::directories($this->app->basePath() .
126126
"/" . config("easy-repository.repository_directory"));
127127
foreach ($dirs as $dir) {
128+
$dir = str_replace('\\', '/', $dir);
128129
$arr = explode("/", $dir);
129130

130131
$folders[] = end($arr);
@@ -201,7 +202,9 @@ private function getServicePath() {
201202

202203

203204
foreach ($path as $file) {
204-
$servicePath[] = str_replace("Services/","",strstr($file->getPath(), "Services"));
205+
$file_path = strstr($file->getPath(), "Services");
206+
$file_path = str_replace('\\', '/', $file_path);
207+
$servicePath[] = str_replace("Services/","",$file_path);
205208
}
206209
}
207210

0 commit comments

Comments
 (0)