Skip to content
This repository was archived by the owner on Feb 18, 2024. It is now read-only.

Commit edd8ad7

Browse files
author
Andrei Sosnov
authored
Merge pull request #12 from burakcakirel/master
Fix duplicate stub path
2 parents dd1b5fa + ad136b1 commit edd8ad7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Console/ControllerMakeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function getStub()
4545
if ($this->option('api') && is_null($stub)) {
4646
$stub = config('stubs.path') . '/controller.api.stub';
4747
} elseif ($this->option('api') && !is_null($stub) && !$this->option('invokable')) {
48-
$stub = config('stubs.path') . str_replace('.stub', '.api.stub', $stub);
48+
$stub = str_replace('.stub', '.api.stub', $stub);
4949
}
5050

5151
$stub = $stub ?? config('stubs.path') . '/controller.plain.stub';

0 commit comments

Comments
 (0)