Skip to content

Commit

Permalink
fix: publish file root namespace (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
aidan-casey committed Oct 28, 2024
1 parent 90287f0 commit 9cb48b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PublishesFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private function updateClass(string $destination): void
}

$namespace = str($destination)
->replaceStart(src_path(), src_namespace())
->replaceStart(rtrim(src_path(), '/'), src_namespace())
->replaceEnd('.php', '')
->replace('/', '\\')
->explode('\\')
Expand Down

0 comments on commit 9cb48b7

Please sign in to comment.