Skip to content

Commit 8fb6412

Browse files
committed
Fix wrong path when running in console
1 parent 16ca831 commit 8fb6412

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/AppGeneratorCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ protected function getPath($name)
116116
{
117117
$name = str_replace($this->laravel->getNamespace(), '', $name);
118118

119-
if ($this->laravel->runningInConsole()) {
119+
if ($this->laravel->runningUnitTests()) {
120120
return $this->laravel['config']['generator.path'].'/'.str_replace('\\', '/', $name).'.php';
121121
}
122122

0 commit comments

Comments
 (0)