Skip to content

Commit

Permalink
seeds to seeders
Browse files Browse the repository at this point in the history
  • Loading branch information
summerblue committed Dec 18, 2020
1 parent f9882d6 commit ccabf08
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ $ php artisan make:scaffold Projects --schema="name:string:index,description:tex
+ ./database/migrations/2017_04_17_065656_create_projects_table.php
+ ./database/factories/ModelFactory.php
+ ./database/seeds/ProjectsTableSeeder.php
+ ./database/seeds/DatabaseSeeder.php (Updated)
+ ./database/seeders/ProjectsTableSeeder.php
+ ./database/seeders/DatabaseSeeder.php (Updated)
x ./app/Models/Model.php (Skipped)
+ ./app/Models/Project.php
+ ./app/Http/Controllers/ProjectsController.php
Expand Down
2 changes: 1 addition & 1 deletion src/Makes/MakeSeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected function generateSeed()

protected function updateDatabaseSeeder()
{
$path = './database/seeds/DatabaseSeeder.php';
$path = './database/seeders/DatabaseSeeder.php';
$content = $this->files->get($path);
$name = $this->scaffoldCommandObj->getObjName('Names') . 'TableSeeder';

Expand Down
2 changes: 1 addition & 1 deletion src/Makes/MakerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ protected function getPath($file_name, $path='controller')
}
elseif($path == "seed")
{
return './database/seeds/'.$file_name.'.php';
return './database/seeders/'.$file_name.'.php';
}
elseif($path == "view-index")
{
Expand Down
4 changes: 2 additions & 2 deletions tests/CommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function prepareFilesystem()
'app/Http/Controllers',
'app/Models',
'app/Providers',
'database/seeds',
'database/seeders',
'database/migrations',
'database/factories',
'resources/views',
Expand All @@ -60,7 +60,7 @@ public function prepareFilesystem()
$this->files =
[
'./database/factories/UserFactory.php',
'./database/seeds/DatabaseSeeder.php',
'./database/seeders/DatabaseSeeder.php',
'./app/Models/Model.php',
'./app/Providers/AuthServiceProvider.php',
'./app/Providers/AppServiceProvider.php',
Expand Down

0 comments on commit ccabf08

Please sign in to comment.