Skip to content

Commit

Permalink
realpath app during string replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Apr 4, 2019
1 parent 505325b commit 82ded9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ protected function load($paths)
$command = $namespace.str_replace(
['/', '.php'],
['\\', ''],
Str::after($command->getPathname(), app_path().DIRECTORY_SEPARATOR)
Str::after($command->getPathname(), realpath(app_path()).DIRECTORY_SEPARATOR)
);

if (is_subclass_of($command, Command::class) &&
Expand Down

0 comments on commit 82ded9a

Please sign in to comment.