We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1486dd4 commit df5b58bCopy full SHA for df5b58b
src/Commands/DataMakeCommand.php
@@ -30,14 +30,14 @@ protected function resolveStubPath($stub): string
30
31
protected function getDefaultNamespace($rootNamespace): string
32
{
33
- $namespace = trim($this->option('namespace') ?? 'Data', '\\');
+ $namespace = trim($this->option('namespace'), '\\');
34
35
return trim($rootNamespace . '\\' . $namespace, '\\');
36
}
37
38
protected function qualifyClass($name): string
39
40
- $suffix = trim($this->option('suffix') ?? 'Data');
+ $suffix = trim($this->option('suffix'));
41
if (! empty($suffix) && ! Str::endsWith($name, $suffix)) {
42
$name = $name . $suffix;
43
0 commit comments