Skip to content

Commit

Permalink
Fix wrong path when running in console
Browse files Browse the repository at this point in the history
  • Loading branch information
hariadi committed Dec 24, 2018
1 parent 16ca831 commit 8fb6412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/AppGeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ protected function getPath($name)
{
$name = str_replace($this->laravel->getNamespace(), '', $name);

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

Expand Down

0 comments on commit 8fb6412

Please sign in to comment.