From c751814cdec94e275cec48c0a79dd7107f14e3f4 Mon Sep 17 00:00:00 2001 From: Victor Hugo Date: Fri, 19 Oct 2018 13:43:34 -0300 Subject: [PATCH] Fix model name and display name in the singular --- src/Commands/BreadGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/BreadGenerator.php b/src/Commands/BreadGenerator.php index 9f91341..5400fc3 100644 --- a/src/Commands/BreadGenerator.php +++ b/src/Commands/BreadGenerator.php @@ -67,7 +67,7 @@ protected function buildClass($name) */ public function replacePlaceholders(&$stub) { - $name = $this->argument('name'); + $name = Str::singular($this->argument('name')); $replacements = collect([ 'DummyStudlyCaseSingular' => Str::studly($name), 'DummyStudlyCasePlural' => Str::plural(Str::studly($name)),