Skip to content

Commit d03f3ed

Browse files
authored
Merge pull request #3583 from paulbalandan/make-scaffold-argument
Allow fallback when make:scaffold's argument is missing
2 parents 811d48d + 196b55b commit d03f3ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Commands/Generators/CreateScaffold.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function run(array $params)
129129
];
130130

131131
// Call those commands!
132-
$class = $params[0];
132+
$class = $params[0] ?? CLI::getSegment(2);
133133
$this->call('make:controller', array_merge([$class], $controllerOpts, $genOptions));
134134
$this->call('make:model', array_merge([$class], $modelOpts, $genOptions));
135135
$this->call('make:entity', array_merge([$class], $genOptions));

0 commit comments

Comments
 (0)