Skip to content

Commit f2cec0d

Browse files
authored
Update seed.stub
1 parent 19a0ce8 commit f2cec0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Stubs/seed.stub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ class {{Models}}TableSeeder extends Seeder
77
{
88
public function run()
99
{
10-
${{model}}s = factory({{Model}}::class)->times(50)->make()->each(function (${{model}}, $index) {
10+
${{models}} = factory({{Model}}::class)->times(50)->make()->each(function (${{model}}, $index) {
1111
if ($index == 0) {
1212
// ${{model}}->field = 'value';
1313
}
1414
});
1515

16-
{{Model}}::insert(${{model}}s->toArray());
16+
{{Model}}::insert(${{models}}->toArray());
1717
}
1818

1919
}

0 commit comments

Comments
 (0)