Skip to content

Commit f82f446

Browse files
committed
Allow absolute paths outside of app scope
1 parent 4dd2065 commit f82f446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Console/Commands/Views/PublishOrCreateViewBackpackCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function handle()
5454

5555
// full or relative file path may be provided
5656
if (file_exists($from)) {
57-
$source = Str::start($from, Str::finish(base_path(), '\\'));
57+
$source = realpath($from);
5858
}
5959

6060
if (! $source) {

0 commit comments

Comments
 (0)