replace windows backslashes by slashes before path mapping (#1107)

Co-authored-by: Andreas Palm <ap@ewsp.de>
This commit is contained in:
exciler 2021-03-29 00:15:56 +02:00 committed by GitHub
parent 1e320835c2
commit ed146b2c70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,7 @@ class ThemeViewFinder extends \Igaster\LaravelTheme\themeViewFinder
$themeSubPaths = [];
foreach ($paths as $path) {
$pathRelativeToApp = substr($path, strlen(base_path()) + 1);
$pathRelativeToApp = str_replace('\\', '/', $pathRelativeToApp);
// Ignore paths in composer installed packages (paths inside vendor folder)
if (strpos($pathRelativeToApp, 'vendor') !== 0) {
// Remap paths definded int $pathsMap array