Skip to content

Commit f3d49a3

Browse files
authored
Merge pull request #162 from Laravel-Backpack/allow-relative-absolute-from-paths
Allow absolute paths outside of app scope
2 parents 20691d0 + f82f446 commit f3d49a3

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)