Skip to content

Commit 20691d0

Browse files
authored
Merge pull request #161 from Laravel-Backpack/allow-relative-absolute-from-paths
Allow relative file paths on --from option
2 parents dd81e59 + 4dd2065 commit 20691d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Console/Commands/Views/PublishOrCreateViewBackpackCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ public function handle()
5252
}
5353
}
5454

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

6060
if (! $source) {

0 commit comments

Comments
 (0)