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

Commit

Permalink
Merge pull request #12 from burakcakirel/master
Browse files Browse the repository at this point in the history
Fix duplicate stub path
  • Loading branch information
Andrei Sosnov authored Nov 9, 2018
2 parents dd1b5fa + ad136b1 commit edd8ad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/ControllerMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected function getStub()
if ($this->option('api') && is_null($stub)) {
$stub = config('stubs.path') . '/controller.api.stub';
} elseif ($this->option('api') && !is_null($stub) && !$this->option('invokable')) {
$stub = config('stubs.path') . str_replace('.stub', '.api.stub', $stub);
$stub = str_replace('.stub', '.api.stub', $stub);
}

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

0 comments on commit edd8ad7

Please sign in to comment.