Skip to content

Commit 82ded9a

Browse files
committed
realpath app during string replacement
1 parent 505325b commit 82ded9a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Illuminate/Foundation/Console/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ protected function load($paths)
224224
$command = $namespace.str_replace(
225225
['/', '.php'],
226226
['\\', ''],
227-
Str::after($command->getPathname(), app_path().DIRECTORY_SEPARATOR)
227+
Str::after($command->getPathname(), realpath(app_path()).DIRECTORY_SEPARATOR)
228228
);
229229

230230
if (is_subclass_of($command, Command::class) &&

0 commit comments

Comments
 (0)