Skip to content

Commit

Permalink
Update MakeSeed.php
Browse files Browse the repository at this point in the history
  • Loading branch information
summerblue authored Apr 3, 2019
1 parent 01fddd8 commit 78ef029
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Makes/MakeSeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected function generateFactory()

protected function generateSeed()
{
$path = $this->getPath($this->scaffoldCommandObj->getObjName('Name') . 'sTableSeeder', 'seed');
$path = $this->getPath($this->scaffoldCommandObj->getObjName('Names') . 'TableSeeder', 'seed');

if ($this->files->exists($path)) {
return $this->scaffoldCommandObj->comment('x ' . $path);
Expand All @@ -74,7 +74,7 @@ protected function updateDatabaseSeeder()
{
$path = './database/seeds/DatabaseSeeder.php';
$content = $this->files->get($path);
$name = $this->scaffoldCommandObj->getObjName('Name') . 'sTableSeeder';
$name = $this->scaffoldCommandObj->getObjName('Names') . 'TableSeeder';

if (strpos($content, $name) === false) {

Expand Down

0 comments on commit 78ef029

Please sign in to comment.