Skip to content

Commit 65c3691

Browse files
authored
Update ApiMakeCommand.php
1 parent 87b2579 commit 65c3691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generator/ApiMakeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ protected function createOptionals()
9595
}
9696

9797
if ($this->option('all') || $this->option('policy')) {
98-
$this->call('make:policy', ['name' => $this->stubVariables['model']['name'].'Policy', '--model' => $this->stubVariables['model']['name']]);
98+
$this->call('make:policy', ['name' => $this->stubVariables['model']['name'].'Policy', '--model' => $this->stubVariables['model']['fullNameWithoutRoot']]);
9999
}
100100

101101
if ($this->option('all') || $this->option('resource')) {

0 commit comments

Comments
 (0)