We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b98c75a commit b3f89e8Copy full SHA for b3f89e8
src/InspireCmsServiceProvider.php
@@ -563,8 +563,11 @@ protected function registerStubs()
563
}
564
565
foreach (app(Filesystem::class)->allFiles(__DIR__ . '/../stubs/SampleAssets/Assets') as $file) {
566
- $dir = str($file->getRelativePath())->explode('/')
567
- ->map(fn ($path) => (string) str($path)->kebab())
+ $dir = str($file->getRelativePath())
+ ->replace('\\', '/')
568
+ ->explode('/')
569
+ ->filter(fn ($path) => filled($path))
570
+ ->map(fn ($path) => Str::kebab($path))
571
->implode('/');
572
$fullPath = (string) str(public_path($dir))
573
->finish('/')
0 commit comments