Skip to content

Commit 2eae4ec

Browse files
committed
fix: minor dot fix for empty view prefix
1 parent 821f0c7 commit 2eae4ec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/DTOs/GeneratorPrefixes.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ public function getViewPrefixWith($append)
3030

3131
public function getViewPrefixForInclude()
3232
{
33-
return Str::replace('/', '.', $this->view).'.';
33+
if ($this->view) {
34+
return Str::replace('/', '.', $this->view).'.';
35+
}
36+
37+
return '';
3438
}
3539

3640
public function mergeRoutePrefix(array $prefixes)

0 commit comments

Comments
 (0)