Skip to content

Commit 464ba06

Browse files
committed
Remove buildParentReplacements method from RepositoryMakeCommand
1 parent a072422 commit 464ba06

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/Console/RepositoryMakeCommand.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -84,28 +84,6 @@ protected function buildClass($name)
8484
);
8585
}
8686

87-
/**
88-
* Build the replacements for a parent controller.
89-
*
90-
* @return array
91-
*/
92-
protected function buildParentReplacements()
93-
{
94-
$parentModelClass = $this->parseModel($this->option('parent'));
95-
96-
if (! class_exists($parentModelClass)) {
97-
if ($this->confirm("A {$parentModelClass} model does not exist. Do you want to generate it?", true)) {
98-
$this->call('make:model', ['name' => $parentModelClass]);
99-
}
100-
}
101-
102-
return [
103-
'ParentDummyFullModelClass' => $parentModelClass,
104-
'ParentDummyModelClass' => class_basename($parentModelClass),
105-
'ParentDummyModelVariable' => lcfirst(class_basename($parentModelClass)),
106-
];
107-
}
108-
10987
/**
11088
* Build the model replacement values.
11189
*

0 commit comments

Comments
 (0)