Skip to content

Commit fd0683c

Browse files
committed
RepositoryMakeCommand, set default namespace to App\Http\Repositories
1 parent efb0d05 commit fd0683c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Console/RepositoryMakeCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected function getStub()
5656
*/
5757
protected function getDefaultNamespace($rootNamespace)
5858
{
59-
return $rootNamespace.'\Repositories';
59+
return $rootNamespace.'\Http\Repositories';
6060
}
6161

6262
/**
@@ -77,7 +77,7 @@ protected function buildClass($name)
7777
$replace = $this->buildModelReplacements($replace);
7878
}
7979

80-
$replace["use {$controllerNamespace}\Controller;\n"] = '';
80+
// $replace["use {$controllerNamespace}\Controller;\n"] = '';
8181

8282
return str_replace(
8383
array_keys($replace), array_values($replace), parent::buildClass($name)

0 commit comments

Comments
 (0)